MUHAMMAD MUBUSHER ASLAM
04/29/2021, 9:37 AMcurrentRecord.selectNewLine({ sublistId: 'expense' });
currentRecord.setCurrentSublistValue({ sublistId: 'expense', fieldId: 'account', value: account1 });
var amount1 = purchaseReq.getValue({ fieldId: 'custrecordpola1' });
currentRecord.setCurrentSublistValue({ sublistId: 'expense', fieldId: 'amount', value: amount1 });
var department1 = purchaseReq.getValue({ fieldId: 'custrecord89' });
currentRecord.setCurrentSublistValue({ sublistId: 'expense', fieldId: 'department', value: department1 });
var location1 = purchaseReq.getValue({ fieldId: 'custrecord109' });
currentRecord.setCurrentSublistValue({ sublistId: 'expense', fieldId: 'location', value: locationId });
// commit the changes
currentRecord.commitLine({ sublistId: 'expense' });
after adding items it is showing like below image, I do not want to click on add button, is there any way to add items.Ryan J
04/29/2021, 10:20 AMMUHAMMAD MUBUSHER ASLAM
04/29/2021, 10:25 AMRyan J
04/29/2021, 10:26 AMLuiz Morais
04/29/2021, 11:17 AMSandii
04/29/2021, 2:25 PM