- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2016 11:43 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2016 02:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2016 07:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2016 06:08 PM
Hi Uzma
Could you please tell me 'display_incident_list' and 'incident_list' in the UI action. Do we need to create UI page and table seperately to acquire this ?
While I was trying with the same code I ditn get the Popup window. So got confused over there.
If so could you please send me the code for this UI page and table..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2016 07:00 PM
How to create UI page to do the above ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2016 02:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2016 06:42 PM
Hi Uzma,
Thanks Uzma for your help !!
yes, I got that , there were some mistakes happened from my side thats why I was getting error.
Now I got my custom table in a Pop up, but I want to add another UI action inside that 'list choice'. So where I can do that code to add one more option inside the List choice options. Say in the following image I need to add another list choice option (UI action) naming like - 'Assign'. How can i do that.. is that a feasible one ?
Please help me to achieve this...