In suitescript 1.0 we could use sublist.setLineItemValues(searchArray) to set sublist fields from search results. How do we do this in Suitescript 2.0 ?
Sadly, I do not see an equivalent for this anywhere in the documentation for N/ui/serverWidget.Sublist. This is definitely be a significant deficiency that I hope gets added soon.
1
votes
work with sublist.setSublistValue(options) in suitescript 2.0 it is equivalent to sublist.setLineItemValues(searchArray).
sublist.setSublistValue(options)
With this method you need to set the column values individually.(use loop).
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more