- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 01:59 PM
Hi all,
Im currently struggling with a reference qualifier on a catalog item and wondering if anyone can help.
I have two variables
- application_name - a reference to cmdb_ci_appl table
- ad_group_reference - a reference to a custom table u_application_ad_group_reference this table contains a list of AD groups, each group record has a reference to the corresponding application from the cmdb_ci_appl table
Im trying to add a reference qualifier to the AD Group Reference variable so it only shows group records with a matching application as selected in variable 1
I've fairly new to the world of variable advanced ref qualifiers but my current version is;
Javascript;'u_application='+current.variables.application_name;
Any assistance is appreciated!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 02:10 PM
If you copy pasted, there's a few typos;
`javascript:'u_application='+current.variables.application_name;`
If you didn't, can you confirm they are references and not lookup select variables?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 09:02 PM
Hi,
Based on the below article:
The Reference qualifier needs to set as:
javascript:'u_application=' + current.application_name;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 10:02 PM
Hello Leachy,
It seems that you are using semi colon (;) instead of colon (:) and more over make sure , you have used the table to refer as your custom table in the dictionary entry of the variable
For initial Purpose you can even hard code an encoded query directly and check if that works for you.
Hope That Helps
Mark this response as correct if that really helps so that this can be removed from unanswered category
Thanks,
Siva