Sign up to receive SuiteScript examples and advice directly in your email inbox.

Correction on Sublist Methods

Created: June 7, 2017

ESS reader Bernard wrote in with a correction in my previous content on Sublists:

Also, r.Record.selectLine and selectNewLine only works when dynamic is true...I found that out the hard way... 😦

Some further testing in my environment confirms that the N/record's selectLine and selectNewLine API methods are only available when you are working with a record in Dynamic Mode.

If you are working in Standard Mode, I believe you will have to avoid using the *Current* API methods and simply use getSublistValue and setSublistValue instead.

Thanks for writing in, Bernard!