I have a sublist (`serverWidget.SublistType.List`)...
# suitescript
a
I have a sublist (
serverWidget.SublistType.List
) with inline fields (
serverWidget.FieldDisplayType.INLINE
). Is it possible to populate them in a client script? I'm trying with
scriptContext.currentRecord.setCurrentSublistValue
but it isn't working.
n
I am not sure. But can you try 1.0 with nlapiSetCurrentLineItemValue?
I think I have encountered this problem where inline fields are not set by 2.0 script, but 1.0 works fine. Can you try that?
a
Unfortunately not possible for me. Can I change the field type on the fly?
n
Why not possible? You can write 1.0 code in 2.x Client script.
a
Never knew that.
Either way I'm getting
N.js?NS_VER=2022.2&minver=15&buildver=30706:75122 Uncaught TypeError: Cannot read properties of undefined (reading 'checkvalid')
n
Seems like it is not possible.