Join Slack
Powered by
Is there any way to get the sublist level changes ...
# suitescript
a
Ankur Sanghi
03/28/2019, 8:59 PM
Is there any way to get the sublist level changes in client script? Does fieldChanged trigger capture those changes?
k
Kevin
03/28/2019, 9:10 PM
Yes, you can use Client script and Field Changed
Kevin
03/28/2019, 9:12 PM
what version are using 1.0 or 2.0 ?
Kevin
03/28/2019, 9:18 PM
if your using 2.0
Kevin
03/28/2019, 9:18 PM
function fieldChanged(context) { var currentRecord = context.currentRecord; var sublistName = context.sublistId; var sublistFieldName = context.fieldId; var line = context.line; if (sublistName === ‘item’ && sublistFieldName === ‘item’) currentRecord.setValue({ fieldId: ‘memo’, value: ‘Item: ’ + currentRecord.getCurrentSublistValue({ sublistId: ‘item’, fieldId: ‘item’ }) + ' is selected’ });
Kevin
03/28/2019, 9:18 PM
try that
a
Ankur Sanghi
03/28/2019, 9:21 PM
Thank you Kevin! In the meantime, I learned a little more from SuiteAnswers also.
k
Kevin
03/28/2019, 9:26 PM
Sounds great!
2
Views
Open in Slack
Previous
Next