how to add pagination or next page option in glidedialog window pop up

keshav77
Tera Contributor

Hi All,

 

I have create glide dialog window pop up which shows the only this list level view of indient but I am not able to add next page move option in it remain on the first page only.

@Ankur Bawiskar  can you help me with this

 

function onLoad() {
    var w = new GlideDialogWindow('show_list');   // built-in UI Page
    w.setTitle('Incident List');

   
    w.setPreference('table', 'incident_list');  
    w.setPreference('sysparm_view', 'default');

    // Optional size/scroll
    w.setSize(1200, 800);
    w.setPreference('scrollbars', true);

    w.render();
}
1 REPLY 1

Bert_c1
Kilo Patron

While your script works when an incident is opened, it shows the number of records based on the user's 'rowcount' preference. Don't depend on what you've done as the Client API has been deprecated:

 

https://developer.servicenow.com/dev.do#!/reference/api/yokohama/client/c_GlideDialogWindowAPI