Discussions

Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Make Your Voice Heard: What Tech & ERP Topics Should We Explore in our Next Webinar?? We’re all ears! Vote now, and the poll runs until January. Poll for ERP | Poll for Tech.
Uncover the power of data with the Analytics Hub —your ultimate guide to mastering NetSuite Saved Searches and Reports. Simplify the complex and unlock your organization's true potential. Dive into the Analytics Hub now and soar to new heights!
To help you get the most out of your 2025.1 Release Preview account, review the topics outlined in the Release Preview Guide.
NetSuite Release 2025.1 Release Notes are available for download here!

How to Search Using Current Sublist Line Value in a Suitelet?

edited Jan 30, 2023 8:28PM in SuiteCloud / Customization 7 comments

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 1 (Jan-Mar 2025)

This Week's Leaders

This Month's Leaders

All Time Leaders