- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 01:54 AM
Hi,
I have a custom table(u_userslist) in which two fields are of List type(Primary users and Backup users).
I want to auto-populate all the selected Primary users and Backup users in the List collector variable(all_users) on the catalog form.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 03:30 AM
Hi,
this variable "all_users" refers to sys_user
So this variable should auto-populate with Primary and Backup users.
you can use onChange on select box reference variable + GlideAjax and fetch the primary + backup users and set it on list collector variable
refer my blog for the same; If my blog helps please mark it helpful and also bookmark it
Dynamically set list collector on change of variable
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
09-06-2022 02:14 AM
Hi,
since it's list collector and it's a reference it can show only 1 value at a time once record is selected.
Whichever field is marked as Display=true on u_userslist will be shown once you select the value
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
09-06-2022 03:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 03:16 AM
Hi,
So you have a catalog item and list collector variable which refers to u_userslist table
So what's the challenge?
I already mentioned that
Whichever field is marked as Display=true on u_userslist will be shown once you select the value
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
09-06-2022 03:22 AM
Here we have a select box(reference to u_userlist). Whenever we are selecting any record from the dropdown based on that All users will auto-populate with Primary and Backup.