How to retain the form in open mode when onclose dissatisfy?
chandrurec
Member Posts: 560
Hi all,
I am writing a code to check some conditions in on Close form trigger.When the condition satisfies, I dont want to close the form but the form should be in open state with the filters applied before closing the form.When the condition is not getting satisfied the form can close.
The coding I have written is as follows
ok := DIALOG.CONFIRM('Have you madde the Indent Qty to 0 ?');
IF not ok THEN
CurrForm.CLOSE
But Irrespective of whether the condition is satisfued or not, the form is getting closed.Is there any solution to retain the form when the condtion is not satisfied with the filters applied before closing the form.
Thanks in advance.
Regards,
Chandru
I am writing a code to check some conditions in on Close form trigger.When the condition satisfies, I dont want to close the form but the form should be in open state with the filters applied before closing the form.When the condition is not getting satisfied the form can close.
The coding I have written is as follows
ok := DIALOG.CONFIRM('Have you madde the Indent Qty to 0 ?');
IF not ok THEN
CurrForm.CLOSE
But Irrespective of whether the condition is satisfued or not, the form is getting closed.Is there any solution to retain the form when the condtion is not satisfied with the filters applied before closing the form.
Thanks in advance.
Regards,
Chandru
0
Comments
-
-
But even you will find out that you need to use OnQueryClose instead, Your access is not good and you will still have problems. If you want to check that some field was entered ("mandatory fields"), I recommend to search for the mandatory fields on this forum. You will find out very interesting answers. E.g. what you will do when user move to another record? Will you still ask him whether he entered the value?0
-
Hi kapamarou/Kine,
Thanks a lot. Now its working fine.
Regards,
Chandru0
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
