CA Service Management

Expand all | Collapse all

Default Attachment Repository based on Data Partition

  • 1.  Default Attachment Repository based on Data Partition

    Posted Apr 21, 2016 12:33 PM

    Hello Guys.

     

    Im using SDM 14.1

     

    We need to set the  default repository of an attachment based on the category or part of the category.

     

    This is the scenario:We have three repositories, When a user opens a ticket and uploads an attachment to it, the repository where this attachment will be stored is going to be based on the data partition that the user has.

     

    We created a constraint of Type Default on the Attachment table with this restriction 'repository = 'doc_rep:400001'.

     

    But thats not working.

     

    Is there a way to do this on SDM?

     

    Regards,



  • 2.  Re: Default Attachment Repository based on Data Partition

    Posted Apr 28, 2016 09:16 AM

    Any ideas on this?



  • 3.  Re: Default Attachment Repository based on Data Partition

    Posted Apr 28, 2016 10:44 AM

    Hi,

    this easiest way is to achieve this using JS:

    - you can add argCategory attribute to ticket form with value "$args.category.sym";

    - then on attachment form loads check if parent form is in edit mode, if no you can use argCategory attribute, if yes, you need to fetch value from KEY.category input;

     

    Better way to predefine default repository based on current category and pass it using KEEP array directly to popup with URL from Add attachment button.

     

    Regards,

    cdtj