Exit Navision

Paulo
Member Posts: 9
Is it possible to have NF ask you if you really want to exit?
Paul Olivier
Paul Olivier
Paul Olivier
0
Comments
-
On the main menu form 330 Add This Trigger Code
OnQueryCloseForm() : Boolean
IF NOT CONFIRM('are you sure you want to close Navision',FALSE)THEN
ERROR('');
MindSource (UK) Limited
Navision Service Partner
david@mindsource.co.uk
info@mindsource.co.uk0 -
This works perfect, thanksPaul Olivier0
-
Hello Paolo!
This should work too, and you won't get an error!
EXIT(CONFIRM('close form?',TRUE));0 -
An empty error message shows no dialog.
If you typeERROR('Aborted');
orERROR(' ');
you will get an error message.
If you typeERROR('');
then you'll get no message.Timo Lässer
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]0 -
Hello i'm and a navision beginner,
in the object designer (Navision 4.0) can't find the form 330.
I need really help :-(
Greetings Kevin0 -
In Navision 4.00 all Main Menu forms (330, 331, 332, ...) are replaced by the Navigation Pane (Object Type is "MenuSuite").Timo Lässer
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]0 -
Could we please keep the tips and tricks section for tips and tricks? This discussion belongs somewhere else.0
-
OBJECT Codeunit 80000 Closing Navision { OBJECT-PROPERTIES { Date=23.12.05; Time=17:42:34; Modified=Yes; Version List=LORD; } PROPERTIES { SingleInstance=No; OnRun=VAR BEGIN Window.OPEN('#1#########################'); MyFunc(1); Window.CLOSE; END; } CODE { VAR Window@1000000002 : Dialog; PROCEDURE MyFunc@1000000000(Par@1000000001 : Integer); BEGIN Par+=1; Window.UPDATE(1,'Closing Navision'); IF Par=1000 THEN EXIT; MyFunc(Par); END; BEGIN // Created by Tyrex END. } }
0 -
[Topic moved from Navision Tips & Tricks forum to Navision forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
What dodes this CU do? Recursively call itself until Navision crashes or what?
Do It Yourself is they key. Standard code might work - your code surely works.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