How to change the number of rows in Data Table from Instance Definition? (service portal)

valerie_gallot
Giga Expert

Hi,

I'm trying to use this widget : "Data table from instance definition" on Service Portal.

But I would like to limit the number of rows par page that are displayed...

How to do that?

1 ACCEPTED SOLUTION

Hi,


Istanbul too.


I believe that widget "Data Table" don't take into account option "window_size" when it is embedded into an other widget.


I solved the problem by creating a clone of Data Table widget and add "window_size" into the copy (row 23) :



// copy to data[name] from input[name] || option[name]


optCopy(['table', 'p', 'o', 'd', 'filter', 'filterACLs', 'fields', 'keywords', 'view', 'window_size']);


optCopy(['relationship_id', 'apply_to', 'apply_to_sys_id']);



It works for me.



Regards


View solution in original post

6 REPLIES 6

sndangibbard
Mega Guru

Open the Widget Instance options (either click on the edit icon when you hover over the widget in the designer or ctrl+right click on the widget in your live portal). There is an option for Max entries


I already tried that but it does not work.


(by the way "max entries" was not there by default, which is probably intended because it does not work... )


I think that "Data table from instance definition" uses the "number of rows per page"...


Did you try with this widget?


what version of ServiceNow are you using?


Istanbul...


The field "max entries" works fine for "Data table", but I think it does not work for "Data table from instance definition"...


😞


But unfortunately I cannot use "Data table" because I cannot choose the columns