How to create custom html popup (not by using suitelet) in netsuite salesorder and getting all line data on that popup .

Creating the custom html popup field  with submit button in netsuite sales order and getting all the line level data on that popups .  And When the user Clicks on submit the particular line level sublist should be get updated .

Any Ideas will be appreicieted .

Rookie Asked on February 4, 2020 in SuiteScript.
Add Comment
5 Answer(s)

You can write a client script on sales order using validateLine function. To show the line level data on the pop up push all the data you need into an array and show it in the message.

Beginner Answered on February 4, 2020.
Add Comment

Hi , But how i will get the data of item record in client script can u please provide me some clarification .how i will get the option for the select field value .

Rookie Answered on February 4, 2020.

Use comments if you want the discussion to be sane.

on February 4, 2020.
Add Comment

You can use the curentRecord module and .get() method.

Rookie Answered on February 4, 2020.
Add Comment

You can use SuiteScript 1.0 apis like nlapiGetLineItemValue to get your data. Or if you can handle the asynchronous of require, you can use require to get access to N/currentRecord, get the currentRecord, and use methods like getSublistValue.

Same general idea for setting line item values, for SuiteScript 1.0, use nlapiSelectLineItem to select a line item, then set its values using apis like nlapiSetCurrentLineItemValue, then use nlapiCommitLineItem to commit the line when you are done. There are equivalents for SuiteScript 2.0.

Intermediate Answered on February 4, 2020.
Add Comment

By using this apis i can change only suitescript contents(whatever lines but not the html select field).i want to do for the custom html popups . Actually i want to get the item  option in select field of the  html .

Rookie Answered on February 4, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor