Refer to the SuiteScript 2.0 API doc for NetSuite. To set a value of a sublist field, use the "Record.setSublistValue(options)" while in STANDARD mode.
When working in DYNAMIC mode, set a sublist field value using the following methods one by one:
Record.selectLine(options)
Record.setCurrentSublistValue(options)
Record.commitLine(options)
But what are the STANDARD and DYNAMIC modes? What's their difference?