admin管理员组文章数量:1355031
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.
本文标签: setError setting sublist value Netsuite client scriptStack Overflow
版权声明:本文标题:set - Error setting sublist value Netsuite client script - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743929615a2563599.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
currentRec
in this context? – erictgrubaugh Commented Mar 31 at 19:42