Show A Dialog Containing Record List with Check Boxes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 10:06 PM
Hi,
I am trying to show a list of record in a popup when user clicks on a UI Action. I have gone through http://wiki.servicenow.com/index.php?title=Displaying_a_Custom_Dialog#gsc.tab=0
but i have an additional requirement that i want to have check-boxes with the record list, and when the user selects the records from the popup and closes the window pass the data back to the parent window.
Is that possible? if yes please guide me to the soution
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 12:58 AM
Thank you Akhil for answering my question, can you please suggest how will i get the user selection on the parent form, like the flow will be like user clicks a UI Action > Pop Up appears with list of records (with checkboxes) > user selects e.g. 5 out of 10 and then closes the popup> how will i get the user selection in the parent form for further processing ?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 02:28 AM
Client script in ui page can get the value of the checkboxes as true or false and used for further processing.
use g_form object to set the values of the fields in the parent form. Use something like below:
var g1=gel('id_name of checkbox').value;
g_form.setValue('field_name',g1);
Thanks
Akhil
Hit Like/Helpful/Correct, if applicable.