Does anyone know how to set inventory details seri...
# suitescript
d
Does anyone know how to set inventory details serials on client script? (I need it on client for some reason..) Error: Not supported on current subrecord: CurrentSubrecord.selectNewLine.
Copy code
objRecord.selectLine({sublistId: 'item', line: index});
                let invDet = objRecord.getCurrentSublistSubrecord({sublistId: 'item', fieldId: 'inventorydetail'});
                invDet.selectNewLine({sublistId: 'inventoryassignment'});
e
My guess is that the subrecord doesn't support the Dynamic Mode API. Try using the methods that don't have
*Current*
in them
🙌 1
b
Supported Deployments for Subrecord Scripting in general will tell you that client script has poor support for subrecords
despite the no official support, you can set body record fields using client script on subrecords, which is only really useful for address subrecords
if you are desperate, you can deploy a client script on the inventory detail instead