Michael Pope
06/25/2024, 9:34 PMbeforeLoad
event before said record has actually been saved (in other words, a beforeLoad
function called on a create
event)?
I've been trying but newRecord.selectNewLine()
does not work (or it's SuiteScript 1 equivalent).
(For context, I'm trying to add copies of items on a salesorder
to a purchaseorder
which I can technically use transformation to do... but it's not "supported" - and I really don't want to clumsily do it in a client script either).Mike Robbins
06/25/2024, 10:02 PMMike Robbins
06/25/2024, 10:02 PMbeforeLoad
during a CREATE
event, the record is in standard mode so you don't need to select a new line before adding line items. You can use .setSublistValue()
and specify the lines starting with line 0.Michael Pope
06/25/2024, 10:08 PMAnthony OConnor
06/25/2024, 10:08 PMMichael Pope
06/25/2024, 10:09 PMMichael Pope
06/25/2024, 10:09 PMAnthony OConnor
06/25/2024, 10:09 PMMichael Pope
06/25/2024, 10:09 PMMichael Pope
06/25/2024, 10:10 PMAnthony OConnor
06/25/2024, 10:11 PMMichael Pope
06/25/2024, 10:13 PMClay Roper
06/25/2024, 10:32 PMClay Roper
06/25/2024, 10:33 PMMichael Pope
06/26/2024, 3:17 PM