- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2020 02:15 AM
Can someone please explain what you do with this attribute and what you need it for?
The text in the documentation does not help me.
The best thing would be an example of what I can reproduce.
Thank you very much and have a nice Christmas time
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2020 02:25 AM
Point below
Variable attribute ref_qual_elements is required because reference qualifier query should know the latest value of parent element/variable on which the qualifier depends for this variable.
Basically you are sending value to the server to get an updated reference values based on variable value passed
Consider with example
1) You have 1 variable which refers to Group Table reference type
2) You have list collector variable which refers to User table
So you want to use advanced reference qualifier on List collector to show only those Users belonging to the group selected
So you will have to set ref_qual_elements attribute for the list collector to make it identify that it is depending on the other variable
Also when you will be calling the script include from the Advanced ref qualifier you will have to send the Group Selected
So that would be helped by ref_qual_elements attribute
Another Example:
1) you have company variable referring to Company Table
2) You have User variable list collector to User table
You want to show only those users belonging to the Company Selected
So you will use that variable attribute and then in advanced ref qualifier do this
javascript: 'company=' + current.variables.user;
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2020 03:24 AM
Hi,
ref_qual_elements are used for list collector and lookup select box
Your screenshot has Reference variable.
Please refer my example from 1st post itself and try that out
Example:
1) you have company variable referring to Company Table
2) You have User variable list collector to User table
You want to show only those users belonging to the Company Selected
So you will use that variable attribute and then in advanced ref qualifier do this
javascript: 'company=' + current.variables.user;
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2020 04:57 AM
Ahhhhhhhhhhhhhhhh, great THANk you!!!!!
You could call it a dynamic onLoad trigger, whenever I change the department field, the list collector changes too.
Without onchange client script.
With a reference field you probably don't need it, because by clicking on the magnifying glass, you restart the Ref Qualifier.
When I open the ITEM test there are already users in the collector, can I leave it empty at the beginning?
And is it possible to hide the information under the Liscollector?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2020 10:18 PM
You got it right.
Nope you cannot make the list collector empty when form loads for native view.
If that is allowed then user's cannot select the values from left to right slush bucket
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2020 10:18 PM
Did my reply answer your original question?
If so, please mark my response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.
Thanks!
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2020 10:33 PM
Thank you Ankur