Anyone have any insight on how to build a suitelet...
# suitescript
x
Anyone have any insight on how to build a suitelet that shows results of a saved search....and you can apply filters to those results in the suitelet?
t
You can create a sublist on suitelet then populate the sublist using the save search conditions...
x
@Tyn Guardian Not sure I follow you
t
here, you can use the sublist object in Suitelet. Where you can list down all the result from your saved search https://nlcorp.app.netsuite.com/app/help/helpcenter.nl?fid=section_4325844858.html
or you can use createList
x
That's not going to work. It has to be a List type sublist
b
add body level fields for the filters then use the submit button to return a new page with your filtered sublist
x
@battk How would I differentiate between setting the filters vs. the other POST logic that needs to happen when those lines are selected?
b
probably something simple like setting a checkbox when the filter fields change
t
or a dropdown selection then pass the parameter to your function that will search depend on the change
b
problem here is that a list type sublist has a fixed number of rows
t
meaning there are limited result per page?
b
as in you will have trouble updating the sublist
🙈 1
c
Just use datatables to display everything for you, loads easier
b
a table library is an excellent choice if you actually want your table to be dynamic instead of reloading the page