Basic client script question. On a sales order I ...
# suitescript
a
Basic client script question. On a sales order I want to know whenever a change to the subtotal happens. The subtotal field is not ever edited directly but rather various events can affect it, (i.e. adding more items, changing a quantity etc.) I was assuming that I could just use the fieldChanged entry point, and check if fieldId is
subtotal
but apparently even though I can get the value of subtotal, the fieldChanged event doesn't get triggered it doesn't not get triggered by the indirect (i.e. not directly from the user) cause of the change. Is there a way to know when the value of subtotal changes? I tried postSourcing also and it didn't work
w
Check “sublistChanged” entry point, but beware of the performance implication of this function.
a
So I just found this and it kind of does what I want. When you say
beware of the performance implication of this function
Is this entry point frowned upon in general is that just what you have noticed on your own?