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
});
currentRecmitLine({ sublistId: 'custpage_results_sublist' });
}
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
});
currentRecmitLine({ sublistId: 'custpage_results_sublist' });
}
Share
Improve this question
edited Mar 31 at 19:40
erictgrubaugh
8,9271 gold badge21 silver badges28 bronze badges
asked Mar 31 at 17:46
Maira SMaira S
696 bronze badges
2
|
1 Answer
Reset to default 0It worked when I give sublist type as inline editor. Before it was LIST type sublist.
currentRec
in this context? – erictgrubaugh Commented Mar 31 at 19:42