MR
12/19/2019, 7:58 PMvar params = context.request.parameters,
line = params.line,
// line, above, logs as a number, like 5
po = params.po,
options = {type:'purchaseorder', id:po, isDynamic: true},
rec = record.load(options);
var selected = rec.selectLine({
sublistId: "item",
line: line
});
I am getting this error:
Error: SSS_INVALID_SUBLIST_OPERATION
{"type":"error.SuiteScriptError","name":"SSS_INVALID_SUBLIST_OPERATION","message":"You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist."
So the line exists... are item sublists not ediatable?battk
12/19/2019, 7:59 PMMR
12/19/2019, 8:00 PMbattk
12/19/2019, 8:00 PMMR
12/19/2019, 8:03 PMbattk
12/19/2019, 8:03 PMMR
12/19/2019, 8:05 PMMR
12/19/2019, 8:07 PMbattk
12/19/2019, 8:07 PMbattk
12/19/2019, 8:07 PMMR
12/19/2019, 8:08 PMMR
12/19/2019, 8:09 PMbattk
12/19/2019, 8:09 PMMR
12/19/2019, 8:09 PMbattk
12/19/2019, 8:09 PMbattk
12/19/2019, 8:10 PMMR
12/19/2019, 8:10 PMbattk
12/19/2019, 8:11 PMMR
12/19/2019, 8:11 PMMR
12/19/2019, 8:11 PMbattk
12/19/2019, 8:12 PMMR
12/19/2019, 8:13 PM