is there a way on a pageinit function when a trans...
# suitescript
p
is there a way on a pageinit function when a transaction is edited to set a custom field on the same line from another field value on that line?
e
You could use pageInit or beforeLoad in an UE
p
what am I doing incorrectly in my code? I keep on getting a linecount value of null: var recordId = context.newRecord.id; log.debug({details:"recordId = " + recordId }); var objRecord = record.load({ type: record.Type.INVOICE, id: recordId }); var lineCount = objRecord.getLineCount({ sublistId: 'item' });
it is a beforeload function