- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2017 10:02 PM
Hi all,
I have a List choice UI action that utilizes both client and server side code.
I want to be able to get the chosen records in the server side code but g_list.getChecked() does not work server side. How can I achieve this?
Thanks for any help.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 05:06 PM
Check the code in this OOTB global list Delete UI action and see if it helps..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 12:32 AM
Hi Roni,
g_list.getChecked() is a client side method.
This method will get you the sys_id of the checked items.
and you can pass this to server using glideAjax()
eg:
tblName = g_list.getTableName();
selSysIds = g_list.getChecked();
sysIdList = selSysIds.split(',');
numSel = sysIdList.length;
if(numSel > 0) {
indx = 0;
ajaxHelper = new GlideAjax('DeleteRecordAjax');
getCascadeDeleteTables();
}
Thanks,
Swati

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 03:59 AM
Hi Swati,
I have a similar kind of requirement to select list of records using checkboxes in an UI action. But I was trying the g_list.getChecked() in a scoped application. It's not working. Can you please enlighten me in this context whether the API will or won't work in scoped environment.
The following link is the OOB code, which I have to recreate in a scoped environment
Thanks in advance
Regards.
Jagadeesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 12:34 AM
This just missed becoming a classic.
Only if this question was asked by Deepa Srivastava, this would had been ultimate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 12:52 AM
Kalai
In what context was this?
Regards,
Shloke
Regards,
Shloke

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 12:53 AM
Srivastava asked and Srivastava's resolved One big happy Srivastava family