MR
12/20/2019, 3:52 PMvar params = context.request.parameters,
line = params.line,
date = params.date,
poId = params.po,
options = {type:'purchaseorder', id:poId, isDynamic:true},
rec = record.load(options),
formatDate = format.parse({value:date, type:format.Type.DATE});
rec.selectLine({
sublistId: "item",
line: line
});
rec.setCurrentSublistValue({
sublistId: "item",
fieldId: "expectedreceiptdate",
value: formatDate
});
rec.commitLine({sublistId:"item"});
After working through various errors on selectLine and setCurrentSublistValue, I can get this to run without errors, but the field (expectedreceiptdate
) value does not change... just nothing happens, no errors, no anything. Anyone have an idea of what I am doing wrong? This is in a Suitelet, btw, when method is POST upon form submission. Thank you!!