To display a table view in a dialogue window

randeepnath
Mega Contributor

find_real_file.png

I want to display a popup window in that have to display Table view data with the Action combo box. Please help me via poviding steps.

Actually I have a table and need to display that table view inside that window.

1 ACCEPTED SOLUTION

Hi Randeep,



There is no need to create a UI page. Just use the code. It has GlideDialogWindow which displays the dialogue window.


Follow the steps below.


System definition > UI action.


Name: Popup Display List


Table: Incident


Action name: popup_display_list


Form button: True


Client: True


Onclick: popupDispList()


Script:


function popupDispList() {


      //Initialize the GlideDialogWindow


      var gdw = new GlideDialogWindow('display_incident_list'); // displays list of incident


      gdw.setTitle('Incidents');


      gdw.setPreference('table', 'incident_list');


      gdw.setPreference('sysparm_view', 'default');



      //Set the table to display


      var num = g_form.getValue('number');


      var query = 'active=true^priority=1^number!=' + num;


      gdw.setPreference('sysparm_query', query);



      //Open the dialog window


      gdw.render();


}



Regards,


Uzma


View solution in original post

13 REPLIES 13

Hi Randeep,



You need a list choice that should display a dialogue window?



Regards,


Uzma


randeepnath
Mega Contributor

Hi uzma



How can I pass parameters to the above dialog window, and retrieve that parameter in that Popup -?


randeepnath
Mega Contributor

Hi Uzma



How can I use this same code inside my application scope, Now it is used under Global scope ...


Neil Bhisma
Kilo Explorer

Nice to be a part of your discussion. Thanks for sharing your query with us. If you are getting issue while displaying a table view in a dialogue window then i recommend you to concerned with Windows Technical Support Expert, they will help you and provide the best solution related to it as they also helped me for same issue.