First load the record in dynamic mode.To select the new line at the end of a sublist in any record we can use,record.selectNewLine(options).After selecting the new line in sublist, set the sublist value using,objRecord.setCurrentSublistValue(options).Then to commits the currently selected line on the sublist use,objRecord.commitLine(options)Finally save the record. Example code of estimate record is added below.
Tag: sublist update
Customer category sublist auto-update
Automate the sublist update.When there is a change in the body fields Season, category or sub category. We will add a new line into the customer category history sublist.In the before record submit, we can check whether the old field value and new field value has changed or not. If changed add new line to… Continue reading Customer category sublist auto-update
Customer category sublist auto update
Auto sublist update on field change.