Hello, is there a way that, when loading a record,...
# suitescript
i
Hello, is there a way that, when loading a record, and going through a sublist, order this sublist based on a column?
s
Do you want to sort just to support your business logic (i.e. read-only), or do you want to sort with intent to re-save the record with the sublist 'sorted' somehow?
i
Im doing some logic on the lines ( deleting some and setting a value on a field, the value of the line deleted should be set on the next line, but I have parent-children lines ex.
2.0, 2.1..3.0, 3.1
) so for example if I delete the line 2.4, the value of the field on this line should be set onto the next one, 2.5, 2.6, etc, the issue here is that sometimes the new line gets added at the end,
1.0, 1.1, 1.2, 2.0, 2.1, 1.3
, so when looping through them, if I delete the
1.2
, the next one is
2.0
but it should be
1.3