Dialog.CONFIRM function
Wojtekm
Member Posts: 123
Hi,
I need to create CONFIRM funcion wich is able to open FORM when i enter OK and don`t open form, when I enter CANCEL.
I`ve created a shurtcut key for opening FORM by using MENUBUTTON.
I`ve put code:
In second form i put code wich create a new record:
My question is: what should i put in third line code in first form to not open second form when user enter CANCEL in CONFIRM.
************
Wojtekm
I need to create CONFIRM funcion wich is able to open FORM when i enter OK and don`t open form, when I enter CANCEL.
I`ve created a shurtcut key for opening FORM by using MENUBUTTON.
I`ve put code:
Question := TEXT000; Answer := DIALOG.CONFIRM(TEXT000, TRUE);in OnPush Trigger
In second form i put code wich create a new record:
Rec.FINDLAST; IF "No." <> '' THEN BEGIN Rec.INIT; "No." := ''; Rec.INSERT(TRUE); END;
My question is: what should i put in third line code in first form to not open second form when user enter CANCEL in CONFIRM.
************
Wojtekm
0
Answers
-
perhaps this post can give you some ideas
http://www.mibuso.com/forum/viewtopic.php?t=27090 -
You can use variables for it, but it is a pain and the whole thing you are trying to do seemes a little weird an un navision like(inserting an empty no etc).0
-
You need to move the opening the form from button (item button) properties into your code. In this way you can control if you will open the form or not. If the form is opened through the properties (RunObject etc.) you cannot control it...0
-
Hi,
Kine you`re right, becouse i trying to open form by shortcut key after NAV read my code.
thanks for advice
Wojtekm0 -
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
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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
