Is there a way when creating a list type sublist o...
# suitescript
r
Is there a way when creating a list type sublist on a suitelet
Copy code
serverWidget.SublistType.LIST
to select the desired column/sublist field for sorting?
a
Suitelets are limited and kind of static, if the LIST type does not allow to sort there is no parameter or property I'm aware of to make it sortable. You can sort your data before you add it to the list. When people need dynamic sorting or more flexibility from a sublist in a Suitelet they normally go with something like DataTables (third party library), but this adds another layer of complexity.
e
You can sort your data before you add it to the list.
this
r
Doing the sorting before hand. It's just that the arrow mark to sort at the header comes at the last column regardless. Just slightly confusing for the end user sometime.