https://netsuiteprofessionals.com logo
s

Scruffy

05/04/2022, 8:41 PM
Trying to have it such that a modifier is added to the shipping cost of an invoice AFTER a new line item is created. Would using validateLine be a good approach?
b

battk

05/04/2022, 8:56 PM
sublistChanged is safer, its runs after the line is added
validateLine runs right before, which runs the risk of another validateLine preventing the line from being added
s

Scruffy

05/04/2022, 10:31 PM
Makes sense. Thank you
n

Nicolas Bean

05/11/2022, 3:48 PM
@battk what is the best way to create a flag for a sublistChanged operation so it doesn't loop forever?
or maybe I can use fieldChanged and just write to the sublist since all i'm trying to do is update a rate...
n

Nicolas Bean

05/11/2022, 5:53 PM
fieldChanged does exactly what I need tho
but thank you!