Watz
10/14/2019, 6:48 AMbattk
10/14/2019, 6:54 AMWatz
10/14/2019, 8:30 AMvar newrec = nlapiCreateRecord('allocationschedule');
newrec.setFieldValue('name','testrecord1');
newrec.setFieldValue('frequency','MONTHLY');
newrec.setFieldValue('creditaccount',1);
newrec.setFieldValue('weightsinpercentage','T');
newrec.selectNewLineItem('allocationdestination');
newrec.setCurrentLineItemValue('allocationdestination','account',1);
newrec.setCurrentLineItemValue('allocationdestination','weight','100');
newrec.commitLineItem('allocationdestination');
newrec.selectNewLineItem('allocationsource');
newrec.setCurrentLineItemValue('allocationsource','account','OthIncome');
newrec.commitLineItem('allocationsource');
nlapiSubmitRecord(newrec);
Watz
10/14/2019, 8:33 AMbattk
10/14/2019, 9:26 AMnewrec
.getLineItemField("allocationsource", "account", 1)
.getSelectOptions()
to get an array of nlobjSelectOptionsbattk
10/14/2019, 9:27 AMbattk
10/14/2019, 9:27 AMbattk
10/14/2019, 9:31 AMbattk
10/14/2019, 9:35 AMWatz
10/14/2019, 10:21 AMWatz
10/14/2019, 10:28 AMWatz
10/14/2019, 10:28 AM