RE: SS2.0 Suitelet Sublist Postdata

I’m just getting to grips with switching from SS1.0 to 2.0 and working on a suitelet.

I’m creating a custom sublist (ID = recmach_sublist), which I’m filling with data from a search. I’m then trying to catch and manipulate this data in the POST phase.

I can see in the browser console that the sublist data is being passed over as a single parameter recmach_sublistdata, but can’t figure the correct way to access this. I could simply grab the context parameter value and manipulate this using plain javascript methods, but there seem to be issues with encoding (probably because my systems’s ISO and the data UTF8).

Is there a correct API method for accessing the sublist data?

 

dominicb Beginner Asked on September 25, 2019 in SuiteScript.
Add Comment
2 Answers

Use the methods from ServerRequest from the scriptContext.

https://system.na0.netsuite.com/app/help/helpcenter.nl?fid=section_4567654796.html

Intermediate Answered on September 25, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.