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.
nlapiCommitLineItem does not work in a loop??? Why not??
Hi-
We are setting rev-rec on a line by line basis using RR schedules attached to the items. I am having a problem with my script... It is supposed to set rev-rec line by line for an order when you save (for lines where the item has a RR schedule attached)... Anyway, the RR start and end dates can be set by looping through the lines, selecting each line and using nlapiSetCurrentLineItemValue and then jumping to the next line (this works great)....
The problem is that I can not do this with the RR schedule (I am guessing that it has something to do with RR schedule being a drop-down, and not a date. I even moved the setting of the RR schedule to a second loop and it still does not work.... Anyway, the first line will set correctly, but then the script stops and the fist line remains selected (the item name is highlighted)...