hey all, I’m working on paginating a suitelet subl...
# suitescript
a
hey all, I’m working on paginating a suitelet sublist to account for larger numbers of search results, but am noticing when i add the buttons and dropdown for page selection, it dumps all the changes made to the form on the current page (select buttons being checked: https://jmp.sh/ELUNOs2) and wonder if it is possible to leverage the small back next arrows that are native on some NS Sublists to prevent the page from reloading when moving to the next page?
i have gotten next/previous buttons onto the form/sublist, but the page reloads and all the selected boxes get refreshed thus negating the usefulness of the next previous buttons
e
Unfortunately I don't think there's an API for those native paging controls. That would be a major improvement to the
List
and
Sublist
components
e
@Abe Rudy if you change the list type to serverWidgetSublistType.STATICLIST those native controls show up and are fully functional 🙂
a
@Eric B whoa, does that also handle the pagination of the results or does that also have to be configured as well(I'm in transit or I would try it immediately 🙃)
e
@Abe Rudy it doesn’t need to be wired to anything if that’s what you mean…it just works the same way as the native NS lists/grids.
a
Welp I will give that a swing when I get in front of my machine!
Thanks @Eric B
👍 1