Add new values to List Collector
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2020 07:46 AM
Hey folks,
I have a variable List Collector whose data is populating from a table 'sys_toupan_data'.
On catalog from, I have 2 new values of logged-on user's primary account (account) and secondary account (account_dev) which is not available in the table and is missing in the dropdown. These 2 accounts I need to add to List collector dropdown as options. I am fetching account values through catalog client script, but I don't have idea how to append to dropdown.
How can I achieve this? Any suggestions will be very helpful.
ThankYou.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 07:34 AM
Can I achieve this by using a macro variable and a custom widget where I will try to dynamically append table data and 2 additional data?
If yes, please provide some insight.
Or is there any better way to achieve this using customizations?
ThankYou.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 07:51 AM
Hi,
yes that should be possible.
but what if that table has large data then it would be difficult to show that much large data on catalog form via macro
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
10-10-2020 12:14 AM
Is this issue resolved? If so, can you mark appropriate answer as Correct and Helpful? This will close the thread.
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
10-11-2020 11:56 PM
Actually I was trying to make 'List Collector' variable using widget, but I cannot achieve it.
Here's what I am getting.
HTML code in widget:
<div>
<select multiple ng-model="c.toupnadata" ng-options="toupnadata for toupnadata in c.data.toupan"></select>
</div>
How can I achieve a view same like 'List Collector' available in catalog variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2020 12:12 AM
Hi,
I would suggest to use OOB list collector variable
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader