Show A Dialog Containing Record List with Check Boxes

thisisauniqueus
Giga Expert

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,

6 REPLIES 6

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


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.