最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

set - Error setting sublist value Netsuite client script - Stack Overflow

programmeradmin0浏览0评论

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
  • What is currentRec in this context? – erictgrubaugh Commented Mar 31 at 19:42
  • currentRec=current record, I am trying to set suitelet sublist. – Maira S Commented Apr 1 at 5:45
Add a comment  | 

1 Answer 1

Reset to default 0

It worked when I give sublist type as inline editor. Before it was LIST type sublist.

发布评论

评论列表(0)

  1. 暂无评论