Good afternoon, someone knows how can I collect th...
# general
g
Good afternoon, someone knows how can I collect the data type within this Sub-list, plis. This is a suitelet ss2.0, I am new and i have not tried everything, excuse my writing, I am learning English too.
t
It looks like you are trying to get a field value (product quantity) from the sublist, is that correct? I'm not sure what you point out the button for.
If so, I would recommend reviewing the documentation for N/ui/serverWidget and the serverWidget.Sublist object - https://{YOUR_ACCOUNT_NUMBER}.app.netsuite.com/app/help/helpcenter.nl?fid=section_4321345532.html
b
use CurrentRecord.getSublistValue (https://system.na0.netsuite.com/app/help/helpcenter.nl?fid=section_4637583237.html) if you are trying to get the value in client script. use ServerRequest.getSublistValue (https://system.na0.netsuite.com/app/help/helpcenter.nl?fid=section_4567654796.html) if you are trying to get the value in your suitelet
g
if it is correct, I point out the button, because it, you must take the data from the order capture, plus the reference of the "line" field, to add an order, and I do not know how to perform this capture yet. As I remind you I am a novice in what is NetSuite, I have the code Based on Suitelet and ClientScript, which are the functional so far but I do not know how to extract the data from the Suitelet to ClientScript. Again excuse my writing of English.
Code Suitelet 2.0
simply generates a variable-lar message when the signaled button is pressed.
I accept your criticisms, thank you in advance.
b
it looks like you want to get the sublist values in client script, so use N/currentRecord and CurrentRecord.getSublistValue (https://system.na0.netsuite.com/app/help/helpcenter.nl?fid=section_4637583237.html)
g
ok, I'm going to try, thanks for your help.