
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2018 09:18 AM
Hi guys,
I got a question, there's one coworker who's trying to add some extra functionality to the "Create Change" button on the Vulnerability group form. In that form there's a related list of "vulnerable items" and he's trying to somehow grab what records are selected on that list through a script. I've been researching for a while but have only found information about using g_list.getChecked(), which only works directly on the list. I don't really think there's a way to grab that information as a related list is more of a "view" of an existing list with it's own query.
If you have any suggestions, I'll be thankful to see them ^^
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2018 07:07 AM
We ended up finding a solution. It consisted in capturing the related list in an object so we could use GetChecked() on it by using getByName([related-list-name]).
var list = GlideList2.getByName("relatedListName");
var itemArray = list.getChecked();
itemArray would contain sys_ids of the selected items.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2023 01:03 AM
Hi Ivar,
I have the exact same requirement . I tried using this solution, but it is of no help..The GlideList2.getByName is returning undefined.
Can you help me with this.