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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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