DIR Paginate on two widgets on the same page

Evren Yamin
Tera Contributor

Hello,

 

I was trying to achieve pagination on widgets in ServiceNow and I was to able to do so using this steps here: https://www.servicenow.com/community/developer-forum/simple-list-widget-with-pagination/m-p/1398138/...

 

It uses a ui script and you call that ui script as a dependency on your widget.

 

It works great if you have 1 table/widget on a page but if I use that same dependency on another widget that I am calling on the same page where the first widget is, its like its treating the widgets as one.

 

For example I have two widgets on a page that returns a table, 1 for incident, and another 1 for requests, and both widgets contain the ui script dependency,

 

If I click next button on the pagination of the incident widget, the second widget that contains the requests also goes to the next widget.

See screenshot for example: 

EvrenYamin_0-1711337649422.png

 

It's not supposed to be like that, pagination is supposed to be independent regardless of widgets being on the same page.

 

Appreciate if someone can help me with it. Thank you so much

0 REPLIES 0