Hi all, I have a suitelet, where i create sublist,...
# suitescript
d
Hi all, I have a suitelet, where i create sublist, and do
sublist.addButton({id:'xx',label: 'Previous', functionName:'xxxx()'})
. The button shows up on the left of the sublist, is it possible to move it to the right ? Thanks
n
As far as I know and tried, you cannot move it.
d
hhmm.. ok
i would like to create a pagination for my sublist, and advice on how should i do it ? i was thinking to add Prev and Next button on sublist, not sure if this is a correct approach
w
Are doing this on a custom form/suitelet? A hacky solution; you could use jquery to change the position of the button. NS renders things in tables, so you can find your button by the ID selector and alter the style of the parent node.
n
Pagination solution is fine. You can use the buttons. I was just referring to the positioning.
d
ok, thanks @NickSuite
n
You can also use a drop down field for pagination.
d
ok @NickSuite thanks for the advice
s
@dennysutanto i think pagination depends on user settings, not sure what you're doing, say it was a UE before load custom static sublist, it'll auto-paginate, with a dropdown.
d
i created a suitelet with sublist, and i want to paginate the data in the sublist