Hi guys- MR QUESTION - can we use field.submit whi...
# suitescript
s
Hi guys- MR QUESTION - can we use field.submit while updating in line level.?
b
assuming you mean record.submitFields: no
s
record.submit
we have to use setCurrentSublistValue right for updating the line level fields ?
m
I think there's some confusion on what you're meaning here. In 2.0 at least, I am not aware of a record.submit. There is record.save() (to save the record), record.submitFields() (to update a field without record load/save), and on the line there is record.commitLine() (to commit the new values set on the line item).
b
or Record.setCurrentSublistValue (https://system.na0.netsuite.com/app/help/helpcenter.nl?fid=section_4273171484.html)) if you are using dynamic mode
s
i used this - Record.setCurrentSublistValue