jen
08/16/2023, 12:09 AMcommitLine()
) does not execute. If I separate it out, doing all but the last line, press enter, then the last line, press enter in the browser console, it works. I need to be able to add multiple lines in one client script. Any thoughts on what I am doing wrong here?
var tx = currentRecord.get();
tx.selectNewLine({sublistId: 'item'});
tx.setCurrentSublistValue({sublistId: 'item', fieldId: 'item', value: 30});
tx.setCurrentSublistValue({sublistId: 'item', fieldId: 'amount', value: 100, ignoreFieldChange: true});
tx.setCurrentSublistValue({sublistId: 'item', fieldId: 'taxcode', value: 4, ignoreFieldChange: true});
tx.commitLine({sublistId: 'item'});
battk
08/16/2023, 12:16 AMbattk
08/16/2023, 12:17 AMjen
08/16/2023, 1:04 AMjen
08/16/2023, 1:05 AMjen
08/16/2023, 1:06 AMjen
08/16/2023, 1:07 AMjen
08/16/2023, 1:23 AM