Form update fails at activated record
Mog
Member Posts: 34
Hello,
I have a Listform that displays some data according to a filter. Above the form is an option field to manipulate the filter, some code in the OnValidate trigger simply calls a function that makes some SETRANGES, and other data is displayed. Works well so far, but there is a little problem. The complete displayed data changes, but not the record the user clicked on. He has to leave this record and then click it again to make it disappear. This is ugly. I tried to use CurrForm.UPDATE(false) at the end of the trigger and the funciton to avoid this, but Navision throws an error "You cannot use CurrForm.UPDATE here". Does anyone have a hint?
regards
Mog
PS: I'm using Navision 4.00 SP3
I have a Listform that displays some data according to a filter. Above the form is an option field to manipulate the filter, some code in the OnValidate trigger simply calls a function that makes some SETRANGES, and other data is displayed. Works well so far, but there is a little problem. The complete displayed data changes, but not the record the user clicked on. He has to leave this record and then click it again to make it disappear. This is ugly. I tried to use CurrForm.UPDATE(false) at the end of the trigger and the funciton to avoid this, but Navision throws an error "You cannot use CurrForm.UPDATE here". Does anyone have a hint?
regards
Mog
PS: I'm using Navision 4.00 SP3
0
Comments
-
The CurrForm.UPDATE(false) must be called on the subform, not on the main form...0
-
there is no main- and subform, it's just one form0
-
OnValidate of the control (Textbox) or of a Textbox with fieldrelation :?:
Normaly CurrForm.update(false) is enoughDo you make it right, it works too!0 -
it works when placing currForm.UPDATE(false) in the onAfterValidate()-Trigger, not in onValidate()...
thanks!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
