I have a added a custom sublist on a form in Befor...
# suitescript
w
I have a added a custom sublist on a form in BeforeLoad of type
LIST
. I've managed to prevent sorting of that list in View mode by setting all fields to
displayType = serverWidget.FieldDisplayType.ENTRY
But in edit-mode, all fields that are
INLINE
are made sortable, so all columns are sortable and that may mess up the nice indented hierarchical list that I've added. Is there some trick to prevent sorting? (without having a client script that removes the onClick-function from the column-header)
c
Have you tried letting them be editable (e.g. not INLINE) and then disabling the field / column on lineInit?
w
Well, that would kind of work. One of the fields is a Textarea with HTML, so letting that be ENTRY would display the html-code instead of formatting the text. But yes, it would probably prevent sorting and editing. Now, I resorted to adding a "sort" column to the left that the user can click to re-order it to the correct order.
👍 1