- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 06:45 AM
I need to create an Advanced Reference Qualifier. I have service catalog item that asks to select which user is requesting this item (requester field). Once that user is selected, they must select their computer (from cmdb_ci_computer). I want to use the advanced reference qualifier to show only computers assigned to the user. So I need to create a new advanced reference qualifier for the 'user_pc' variable that will be able to use the 'requester'. Can anyone help me with how to do this?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 07:02 AM
I think Mike is close, but missing the actual variable value.
javascript:'assigned_to="+current.variables.requested_for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 06:58 AM
add something like javascript:"assigned_to="+ current.request.requested_for
if it's field than use above if it's variable thn use below
javascript:"assigned_to="+ current.variables.xxxxxxx

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 07:02 AM
I think Mike is close, but missing the actual variable value.
javascript:'assigned_to="+current.variables.requested_for
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 08:07 AM
Thanks! This is part of a simulator I'm using to learn. It also says
NOTE Please use this name for your function invoked by the reference qualifier
'filterUserComputer'
Where does the function come in?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2018 10:43 AM
That function would come from a script include. If you go to System Definition> Script Includes you should be able to do a search using the filter: Script | contains | filterUserComputer and find the exact record where that function is coming from.