Count number of checked records from a list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 02:12 AM
Hi,
I need to create UI Action on Incident List in SOW that on click will count and save the sys_id's of the records that user checked, for example in this image the user checked 2 records:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 03:06 AM
Hi @Yahav Mor ,
You may try with the following script in UI action.
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 04:51 AM
Hello,
You can copy the sys ids of selected records. Create the UI action with below script.
Set Client and List choice option as "true" and set onclick field as "getIDs()".
This UI action will copy the sys IDs in clipboard.
function getIDs() {
var sysIds = g_list.getChecked();
copyToClipboard(sysIds);
}
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!