Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
We’re excited to announce that the 2025 Community Recap is now available! This special recap highlights the amazing contributions and achievements of our members over the year and celebrates the collective success of our community.
Check your personalized recap to see the impact you made in 2025 and how your efforts helped shape our community’s growth and success.
View Your 2025 Community Recap
Thank you to everyone for your passion, collaboration, and support. Here’s to building an even stronger community together in the year ahead!
Reorder lines in Suitelet Sublist
Using SuiteScript 2.1
I would like the user to be able to reorder the lines in a INLINEEDITOR sublist created in a Suitelet. I would like there to be Move Up, Move Down buttons, and/or allow the line to be dragged up or down.
This would be similar to the type of sublist you get when you add a create a custom record with one of the fields a List/Record type and Record Is Parent is checked.
Is this possible?
As a workaround, I keep track of the currently selected line with a global variable set in validateLine and added Move Up and Move Down buttons. A function moveUpDown can see the value of the global variable. The buttons call the function, sending 1 (for Down) or -1 (for Up) and it simply swaps the values of the selected line and the one above or below. I check to see that the selected line isn't the first line (moveUp) or last line (moveDown). Since I have numerous sublists on the page the addButton functionName includes the id of the sublist.