What is an actual use case for `Sublist.addRefresh...
# suitescript
b
What is an actual use case for
Sublist.addRefreshButton()
? I know it's supposed to refresh a sublist, but how can it do that? Normally I would fill a sublist with data server-side before a page loads. Is there some other way of doing this client-side? https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_458060852050.html
b
the refresh button sends a get back to the suitelet
and your suitelet is supposed to write a form with the new data on the sublist
b
Oh interesting. That's very helpful to know for Suitelets. In my instance, I'm adding my sublist to a record instead of a Suitelet.
b
same for a userevent, though it will be a beforeLoad instead