Error in Matrix-form closes form

fve
Member Posts: 28
Hello,
I have a matrix-form where editing is allowed. Above the matrix are some filter-fields as well.
When data is entered in the matrix-form, certain checks are performed. This also is the case for the filter-fields.
Now we have this strange problem where certain fields cause the form to completely close after an error-message is generated. The error is shown, then the form closes.
Other error-messages caused by the input-validation are handled correct.
Does anyone recognise this strange behaviour? ](*,)
By the way: All error-messages in the validations are programmed the same way with the ERROR-function.
I have a matrix-form where editing is allowed. Above the matrix are some filter-fields as well.
When data is entered in the matrix-form, certain checks are performed. This also is the case for the filter-fields.
Now we have this strange problem where certain fields cause the form to completely close after an error-message is generated. The error is shown, then the form closes.
Other error-messages caused by the input-validation are handled correct.
Does anyone recognise this strange behaviour? ](*,)
By the way: All error-messages in the validations are programmed the same way with the ERROR-function.
0
Comments
-
You should put the error-handling in the "OnValidate"-trigger.
If you put some error in the "OnAfterValidate"-trigger, the form is closed.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanx a lot!
It workes perfectly now0 -
You can also create a function called myError(errormsg);
myError(errormsg) begin
error(errmsg);
end;
In your code call myerror instead of error.0
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
- 321 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