Add new values to List Collector

Mohammed
Kilo Contributor

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.

11 REPLIES 11

Mohammed
Kilo Contributor

@Ankur Bawiskar @Pradeep Sharma 

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.

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Mohammed 

Is this issue resolved? If so, can you mark appropriate answer as Correct and Helpful? This will close the thread.

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

Actually I was trying to make 'List Collector' variable using widget, but I cannot achieve it.

Here's what I am getting.

find_real_file.png

 

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?

Hi,

I would suggest to use OOB list collector variable

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader