Reference Qualifier for variable set variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2022 02:28 PM
Good evening all,
I am trying to get a reference variable in a variable set to only show the list of users that correspond with the titled selected.
So if 'Solution Consultant' is selected, only users with the title 'Solution Consultant would show up.
Note:
The Position field on the cat item (role) is a reference on the 'r_role table
The Preferred Dev field on the cat item (p_dev) is a reference on the 'u_devs' table
The table u_dev has a reference to the r_role table, via the u_title field on the u_dev table.
I've tried using the script include below , but im sure its wrong.
javascript: 'title=' + current.variables.role;
Any help would be greatly appreciated.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2022 02:39 PM
Hello JU,
If table u_dev has a reference to the r_role table, via the u_title field, then your reference qualifier should look like:
javascript: 'u_title=' + current.variables.role;
Check if that solves your issue!
Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Best Regards,
Filipe Cruz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2022 03:49 PM
Hello
I made the small tweak, but the preferred dev field shows up blank now, with no users to pick from:
I did update the reference qualifier after my inital test with your script, to what you see below, but it show users whose title is different from the position selected on the cat item:
javascript: 'u_title=' 'u_user_record.active=true' + current.variables.role;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2022 04:06 PM
Hi JU,
Can you go to the u_devs table, do a random filter by a specific position, copy the query and paste it here? So we can see how the filtering is being done.
Thanks!
Filipe Cruz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2022 04:13 PM