netsuite - Change Line Item value On a record on Field Change Event -
i have field in sales order record. on alter of field need alter line item field.
understand client script option. apis looking @ nlapisetlineitemvalue , nlapisetcurrentlineitemvalue
seems cant possible in case of line item fields
function updateordertypelocation(type, name, linenum) { if(type=='item' && name =='item') { var ordertype = nlapigetfieldvalue('custbody_ordertype'); nlapisetcurrentlineitemvalue('item', 'custcolcustcol_line_order_type', linenum, ordertype); }
}
any workaround ?
so line item added in when trigger script. should script trigger when order type changed?
based on code provided, script trigger after select item , not when select order type.
netsuite
No comments:
Post a Comment