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 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Reading line values acting crazy - broken
It's possible that I'm doing something wrong but I really don't think I am.
I have a classic scenario where I want to validate line item values before allowing the line to commit.
The api functions are acting very strange. They seem to returning data from the PREVIOUS state of the line when it was last committed. For example, if I have a line with a "name" field and I do the following:[LIST]
[*]add new line and enter "dog" in the name field and click add
[*]edit this line and type "cat"
[*]The value of "name" in the OnValidate method will return "dog".[/LIST]It's validating validated data. Stupid.
Steve Klett | Senior Developer
NetValue Technology
0