erictgrubaugh
08/27/2018, 10:33 PMsublistChanged might be what you want in this casewsangster
08/28/2018, 12:46 PMrecord.load()? My script runs on the validateLine and loads the Item record and updates the Base price but the discount lines don't change. My Item record is loaded in Dynamic mode.erictgrubaugh
08/28/2018, 1:41 PMbeforeLoad you can only change fields that are not stored, unless you are creating a new recorderictgrubaugh
08/28/2018, 1:42 PMbeforeLoad page:
Notes:
beforeLoad user events cannot be triggered when you load/access an online form.
Data cannot be manipulated for records that are loaded in beforeLoad scripts. If you attempt to update a record loaded in beforeLoad, the logic is ignored.
Data can be manipulated for records created in beforeLoad user events.
Attaching a child custom record to its parent or detaching a child custom record from its parent triggers an edit event.wsangster
08/28/2018, 1:43 PMerictgrubaugh
08/28/2018, 1:44 PMvar rec = record.load();
rec.selectLine(...);
rec.setCurrentSublistValue(...);
rec.commitLine(...);
rec.save(...);erictgrubaugh
08/28/2018, 1:44 PMwsangster
08/28/2018, 1:45 PMwsangster
08/28/2018, 1:46 PM