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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Script: Clear/Set Quantity to 0 on all items on sublist
Dear Community,
I am trying to come up with a simple script button that clears all the quantity to zero on my item sublist.
I've already have a custom button on my item sublist.
I've tried using selectLineItem, setLineItemValue through a loop to change all the qty on my list.
...for 13+ item lines on my item sublist.
it works, but it takes about 8 seconds (freezing up)...way too slow.
is there a better/faster way to clear all the quantity to zero? i don't want to remove the lines. i just want to set it to X qty for all items
0