Discussions

Check out Oracle NetSuite upcoming events and conferences here
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.
Don't miss out on our Question of the week! You only have until tomorrow, September 12, 2024, 2PM ET to comment your answers and earn rewards! Click here for more details.
Get ready to take on exciting new challenges and become the next SuiteMaster of the Month!
Join the largest gathering of the NetSuite Community at SuiteWorld in Las Vegas, September 9-12! Discover cutting-edge innovations, attend insightful sessions, network with industry leaders, and elevate your business to new heights. Register 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 3 (Jul-Sep 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders