How to unlock list collector gilde list field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2018 03:20 PM
I have list collector glide list variable in one of my catalog items. I want this to be unlocked on form load. I found the below link which shows how to unlock glide_list field, but this doesn't work.
https://www.servicenowguru.com/scripting/client-scripts-scripting/lock-unlock-glidelist-url-fields-client-scripts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2018 04:28 PM
Hello,
You don't have to 'unlock' your list collector to get it to display information on your catalog items. I use them to display systems on our user access. I use them if there are 5 or more items to display, rather than using checkboxes. It's more readable for our users.
Make sure that you set 'display' to true for your item (column label) on whichever table it resides in. If you don't do this, your data will not display in the list collector.
ex: You want to display a list of names in a list collector => table 'abc' / column label = 'name' / type = string / display = true
When you declare your list collector variable, you have to reference the table you are pulling data from under type specifications (abc), and use a reference qualifier on that table, so that it will display only certain records. Use your filter to create your reference qualifier.
On your order guide, you have to refer to the sysid of the record on the table in which it resides. (table abc / sysid of 'John')
ex: if 'name of list collector' contains sysid of 'John' / include the catalog item
Hope this helps,
Cindy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2018 09:26 AM
Was this ever answered? I have the same requirement. I have a Catalog Item with several list collectors with the glide_list attribute. I want these variables to be "unlocked" / expanded when the Catalog Item loads.
Does anyone have the example of the script to do that?