Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

List Collector with all the values

VAMSI AMMISETTY
Tera Contributor

Hi Everyone,

How to pull the List Collector complete reference field table data into the right bucket by default.

I want the entire table data needs to prepopulated in list collector variable to the customer when the form loads.

 

Thanks

1 REPLY 1

Brad Bowman
Mega Patron

You can do this with an onLoad Catalog Client Script that uses GlideAjax to call a Script Include, passing in the reference table name as a parameter.  The Client callable Script Include will simply query the table, pushing every record's sys_id to an array, then return the array comma-separated.  Back in the Client Script, set the value of the List Collector variable to the value returned by the Script Include.  Post your script attempts using the insert code icon </> if you get stuck, and we'll get it sorted.