CA Service Management

  • 1.  Limiting the templates a user can see

    Posted Jan 10, 2017 06:50 AM

    Hi there, we need to limit the templates a user can search to all templates that have a name starting with BB (in this instance). This needs to work in the Quick Profile window when a user selects the template button. Any ideas on how to achieve this?



  • 2.  Re: Limiting the templates a user can see

    Broadcom Employee
    Posted Jan 11, 2017 01:39 PM

    I'm not aware of any built in functionality that can handle this. A customization may be possible, but thinking it through it seems it could get complex.



  • 3.  Re: Limiting the templates a user can see

    Broadcom Employee
    Posted Jan 11, 2017 03:01 PM

    templates are tickets so you can use DP for this purpose. For example, for cr/in/pr you can modify the view on call_req table

    template_name LIKE 'BB%'



  • 4.  Re: Limiting the templates a user can see

    Broadcom Employee
    Posted Jan 11, 2017 03:08 PM

    That's a good idea, Chi. Just to note, the users would be unable to see the ticket at all, they wouldn't only be limited in the context of the template list. If they don't need to see the ticket this solution should work very well.



  • 5.  Re: Limiting the templates a user can see

    Broadcom Employee
    Posted Jan 11, 2017 03:29 PM

    Good point, Alex. Surely it could be a problem if it is not the case those users don't need to see others' tickets except their own.



  • 6.  Re: Limiting the templates a user can see

    Posted Jan 12, 2017 12:51 AM

    Chi, We cannot add a view constraint on Call_Req as you are correct, it limits what the users can see. What we did try was to add the cr_template table to the controlled_table which made it selectable in the constraint definitions. We then added a view constraint against it (template_name like 'BB%'). This does not work however. It seems the template selection runs out of some javascript.



  • 7.  Re: Limiting the templates a user can see

    Posted Jan 20, 2017 09:28 AM

    Hi,

    for the scratchpad this is managed in the pb_select_template() function. You can find this function in the profile_browser.js file

    You may want to look to modify/add QBE there that construct the link.

    you can then use form group  associated to roles to manage to who this will apply or manage it there too using if statement

    This is less secure than a DP as this running client side  ut can already help.

    My 2 cents

    /J