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.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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