Need to call selected records sysids in ui page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
57m ago
I have a requirement in ServiceNow Workspace list view.
I created a Declarative Action as a list action, and from that action I am opening a UI Page using g_modal.showFrame(). The UI Page is displaying correctly in Workspace.
Inside the UI Page, I have:
User reference field
Start date field
End date field
Submit button
Requirement:
When the user clicks the Submit button, the selected list records should be updated with the values entered in the UI Page (delegate user, start date, end date).
Issue:
I am unable to pass the selected record sys_ids from the Declarative Action (Workspace list view) to the UI Page client script. Because of this, my Script Include is not able to identify which records need to be updated.
Current approach:
Using g_list.getChecked() in Declarative Action
Opening UI Page using g_modal.showFrame()
Calling GlideAjax from UI Page submit button
Question:
What is the recommended way in Workspace to pass selected list record sys_ids from Declarative Action to a UI Page / UI Page client script for further processing?
Any guidance or sample approach would be helpful.
