2009 vs. 2016 - Table OnValidate trigger called when field value does NOT change
rsaritzky
Member Posts: 469
Hi all,
On a NAV2009 RTC page (e.g. General Journal), if you type in the SAME value in a field that is already there, the table's OnValidate trigger is called (even though you didn't change the value).
In NAV2016, it appears from observation that this is NOT the case. If the value is the same, then the Table's OnValidate trigger does not get called. This assumes no code in the PAGE's OnValidate trigger (e.g. the General Journal page).
Is this true? It may in fact seem logical to see this change, although it affects a custom page that we're converting from 2009->2016.
Thanks
Ron
On a NAV2009 RTC page (e.g. General Journal), if you type in the SAME value in a field that is already there, the table's OnValidate trigger is called (even though you didn't change the value).
In NAV2016, it appears from observation that this is NOT the case. If the value is the same, then the Table's OnValidate trigger does not get called. This assumes no code in the PAGE's OnValidate trigger (e.g. the General Journal page).
Is this true? It may in fact seem logical to see this change, although it affects a custom page that we're converting from 2009->2016.
Thanks
Ron
Ron
0
Best Answers
-
Yes, that's true. Mainly for performance reasons (no change, no need to validate and do a server roundtrip). You can simulate a change by adding a space before the value and leave the field, even for numeric or date fields. I use F2, Space, Tab to re-validate.Cheers
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.5 -
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!5
Answers
-
Yes, that's true. Mainly for performance reasons (no change, no need to validate and do a server roundtrip). You can simulate a change by adding a space before the value and leave the field, even for numeric or date fields. I use F2, Space, Tab to re-validate.Cheers
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.5 -
Carsten,
Thanks for this shortcut trick!
RonRon0 -
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!5
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions