Is there any hack to update line values in client ...
# suitescript
w
Is there any hack to update line values in client without doing selectLine/setCurrentLineValue/commitLine? I need to update a field value on a custom records lines (subrecords). And it's so slow to select/commit every line.
b
w
is it relatively safe to use that in the client? Any potholes?
b
you dont use hacks if you want safe
w
true dat
🙂
In this particular record I use code that is far worse then this. Just wanted to know if there is something I should look out for 🙂
I figure it's a good idea to also run nlapiRefreshLineItems(type) after the updates?
Thanks @battk, resourceful as always!
s
curious, why are we using SS1.0? SS2.x has the same, yes?
b
a CurrentRecord Object has no equivalent
s
Ah, I do client scripts infrequently enough to forget some of the limitations. I do wonder why it was removed - I assume they gave it careful thought for SS2.x before removing it.