- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2022 04:53 AM
We want to use the variable of a List Collector within a Reference Qualifier.
We can work totally fine with Lookup select Box, but it doesnt work with variable type ListCollector.
Is there maybe a workaround? TWe want to offer one field with teh option to select several records and we want to offer a second field which relates only to the first selected.
Example
Variable 1 - Look up Select Box --> only one value can be chosen "Data1"
Variable 2 - Look up Select Box
Reference Qualifier:
javascript:"column=" + current.variables.<var_name>.toString().split(',')[0]
works!
Example
Variable 1 - List Collector --> several values can be chosen "Data1,Data2,Data3"
Variable 2 - Look up Select Box
Reference Qualifier:
javascript:"column=" + current.variables.<var_name>.toString().split(',')[0]
doesn´t work 😕
we can get the data from ListCollector within Record producer Script after the Submit was made.
var <var_script>=producer.<var_name>.getDisplayValue().split(',');
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2022 05:02 AM
Hi,
update as this -> use IN instead of =
javascript:"columnIN" + current.variables.<var_name>.toString().split(',')[0]
Also ensure the variable attributes for list collector has this
ref_qual_elements=<var_name>
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
‎07-13-2022 05:02 AM
Hi,
update as this -> use IN instead of =
javascript:"columnIN" + current.variables.<var_name>.toString().split(',')[0]
Also ensure the variable attributes for list collector has this
ref_qual_elements=<var_name>
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
‎07-14-2022 02:29 AM
Hello Ankur Bawiskar,
thank you for your assistance, i misunderstood that i get the sys_id´s of a specific record with the List collector.
Works now 🙂
BW
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 03:15 AM
Did you marked your own response as correct?
Would you mind marking my response as correct if my comment worked for you.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader