-1

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' });
}
2
  • What is currentRec in this context? Commented Mar 31 at 19:42
  • currentRec=current record, I am trying to set suitelet sublist. Commented Apr 1 at 5:45

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.