'Netsuite - how to execute logic only on copied lineitems
Is it possible to execute clientside code only on a line which is created via the button "Make Copy" via suitescript2.0 in Netsuite?
What I have implemented now is a validateLine function, which does some data manipulation and validation when the users clicks on "OK" of the "copied line" or clicks outside the copied line, which in turn triggers the validateLine function. However when I am changing a non-copied line item, the same validateLine is getting executed on that line item, which is not what I want. The validateLine function only needs to be executed for the copied lines.
However if we for example have a opporutinity with 1 line litem (the original line), when I copying this line, it takes all the data from the original line first line. If I change values on the 1st original line then also the validateLine function is getting executed on that lineitem, which I do not want. So is it possible to only manipulate copied lines, or is there a way to differentiate between copied and original line items?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
