For the `validateLine` client script event. Is the...
# suitescript
c
For the
validateLine
client script event. Is there a way to know if the user is adding or editing a particular line?
n
No. Why do you need to have that distinction?
c
validate line fires on both edit and add and I need to do different things on each event
c
I'm not near NS at the moment, but check
line
and see if it's set for a new line
Easiest thing to do to spot differences is just test &
console.log
the lines in your clientscript to see if there's anything that is different between the two situations
n
Ok, my question though is why do you need to do things differently between the two events? This sounds like something that needs to be resolved at the design stage.