I'm getting this error when I create a component o...
# suitescript
s
I'm getting this error when I create a component on the assembly build "Rbuild.selectNewLine is not a function". Here is the code var Rbuild = record.create({type: record.Type.ASSEMBLY_BUILD}); . . Rbuild.selectNewLine({sublistId: 'component'}); Rbuild.setCurrentSublistValue({sublistId: "component", fieldId: "item", value: '1234'}); Rbuild.setCurrentSublistValue({sublistId: "component", fieldId: "linenumber", value: 0}); Rbuild.setCurrentSublistValue({sublistId: "component", fieldId: "quantity", value: 10}); Rbuild.commitLineItem({sublistId: "component"}); Any help will be greatly appreciated
e
dynamic mode only
You've created the record in Standard Mode and then tried to interact with it as if it were in Dynamic Mode
s
Shame on me 🙂 Thank you very much
e
Wasn't trying to shame you at all. No shade
s
I shamed myself 🙂
s
this is the spot where I plug preferring standard mode when possible
☝️ 1