I am trying to set sublist value on suietelet in a client script.
Getting error as:
cannot read properties of undefined reading 0.
Please advise Thank You!
Below is client script sample.
function fieldchanged() {
currentRec.selectNewLine({ sublistId: 'custpage_results_sublist' });
currentRec.setCurrentSublistValue({
sublistId: 'custpage_results_sublist',
fieldId: 'custpage_so_internalid',
value: 1234
});
currentRec.commitLine({ sublistId: 'custpage_results_sublist' });
}
currentRecin this context?