Form Close automatically after showing ERROR dialog

jigneshdhandha
Member Posts: 41
Hi All........
I want to make Validation on Status Field on Sales Order.
When I moving One Sales Order to Another I am Checking Sales Order Status = Released and IF Status is not Released then
It will Give an error and After that user can change Status = released
But When I got error and after pressing ok then sales order form is closed I dont want to close Sales Order Form.
and I also put message instead of error but through message sales order is not closed but record move to next record. This i dont want to do.
Thanks..............
I want to make Validation on Status Field on Sales Order.
When I moving One Sales Order to Another I am Checking Sales Order Status = Released and IF Status is not Released then
It will Give an error and After that user can change Status = released
But When I got error and after pressing ok then sales order form is closed I dont want to close Sales Order Form.
and I also put message instead of error but through message sales order is not closed but record move to next record. This i dont want to do.
Thanks..............
0
Comments
-
May I know where did you write code and what code?0
-
Hi Mohana..
I am Writing Code on OnQueryCloseForm this is done Perfectly.
When Status is not Released The Form is not Close till Status is not become released.
I also Write Code on OnNextRecord Trigger and OnBeforePutRecord But When I move to One Sales Order to Another and If First Sales Order Status is Open then Error Show and Form is Closed. But Don't Want to Close the Form.
I am Also Try on Onafterrecord and Onaftergetcurrrecord....0 -
jigneshdhandha wrote:I also Write Code on OnNextRecord Trigger and OnBeforePutRecord But When I move to One Sales Order to Another and If First Sales Order Status is Open then Error Show and Form is Closed. But Don't Want to Close the Form.
I am Also Try on Onafterrecord and Onaftergetcurrrecord....
The easiest is on the OnQueryCloseForm()-trigger.
Check the persons orders and if you see an order that should be released, give a message (NOT an error), position to that order and return FALSE so the form does not close.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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
- 320 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