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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. 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