Discussions
SuiteWorld is where the NetSuite community comes together to learn, connect, and discover what’s next.
Whether you’re looking for product updates, practical tips, new ways to improve efficiency, or insights from other customers, SuiteWorld offers something for every stage of your NetSuite journey.
■ NetSuite 2026.2 Release Notes
■ NetSuite SuiteApps Release Notes
■ NetSuite Sneak Peeks
■ Release Preview Guide
■ Release Preview Test Plan Template
How to Search Using Current Sublist Line Value in a Suitelet?
I have written several scripts in the past, but this is my first attempt at writing a Suitelet and need some help. What I am trying to do is add a Sublist button on the Sales Order that, when clicked, opens a Suitelet that displays a custom List with the results of a search based on the SO's customer and the currently selected item in the Item Sublist. Essentially, a pop-up window.
The documentation example "Sample Custom List Page" script (https://suiteanswers.custhelp.com/app/answers/detail/a_id/74606) is conceptually just what I am trying to do (we'll run with their example to keep it relevant) with the only change being to populate the rows based on the search results of the customer's purchase history for the item. I understand how to create the button in the beforeLoad event of the User Event script and define the Suitelet function. I understand how to use the List.clientScriptFileId in the Suitelet to define the Client script function, but how do I get the customer and the item from the currently selected line on the SO into the Client script