In this screenshot, i want to fetch the value 219 ...
# suitescript
v
In this screenshot, i want to fetch the value 219 from the customer Array. its a suitelet page. I am not able to fetch it . could anyone please help me on this?
n
Share your code.
v
function beforeLoad(context) { log.debug('beforeLoad', context.type); var currentRecord = context.newRecord; log.debug('currentRecord',currentRecord); var lineItemCount = currentRecord.getLineCount({ sublistId : 'customer' });
n
You're using a user event on a suitelet???
v
in the screenshot you can see, its not a record page, but a suitelet page. i have a list of invoices, i can submit the selected invoices to process. this is doing via uescript
n
You can only apply a UE script to a record. I guess from what you are saying, you have applied a UE to an Invoice. Refer to the records browser for available sublists on an Invoice. If the data is not present on the invoice you will need to establish where that data is from in the suitelet and it's relationship to the Invoice and how to marry to two together to achieve what you need to do. This may mean a search in your UE script or some other mechanism that adds the detail to the invoice if appropriate.
v
ok i got it. But there is a checkbox to submit the invoices. I need those checkboxes to loop thru over.
n
If you are trying to access the underlying data in a "native" NetSuite suitelet you are not going to achieve that. If you wrote the SuiteLet you should have full control over the data / fields. What you are describing is too vague for me to be able to help further, hopefully someone else is able to as I'm now finishing for the day. Good luck.
v
Thats the issue, i did not write the suitelet page. It was some one else
r
create a button on suitelet, apply the client script to it. Do whatever you are doing on suitelet in client script.