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

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


Same for me.


I had to clone the widget and then modify the server script, line 23, to add 'window_size' to the parameters.