Do you wont to close NAV? Confirmation Page

Wojtekm
Member Posts: 123
Hello,
I am working on NAV 2013.
I am facing situation when some users accidentally close NAV. Is there any possibility to show user confirmation dialog if they wont to close NAV.
I`ve checked CU1 but there is only CompanyClose() trigger, and this trigger is not fired when i am closing NAV.
There is aloso no possibility to write any code in OnCloce trigger in Role Center Page.
Any ideas?
Regards,
I am working on NAV 2013.
I am facing situation when some users accidentally close NAV. Is there any possibility to show user confirmation dialog if they wont to close NAV.
I`ve checked CU1 but there is only CompanyClose() trigger, and this trigger is not fired when i am closing NAV.
There is aloso no possibility to write any code in OnCloce trigger in Role Center Page.
Any ideas?
Regards,
0
Comments
-
Triggers on Role Center pages are indeed not possible.
You could try to use the trigger of pages that you use in the role center pages.
This works. I tried it on an activities-page. Would be a nice feature to ask users if they want to close NAV. I noticed users are more likely to close NAV 2013 accidently than they do with NAV classic client.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
Thanks Tino,
You solution works, but randomly NAV show confirmation dialog twice.
I put this code in P9060 SO Porcessor Activities:OnQueryClosePage(CloseAction : Action None) : Boolean IF NOT CONFIRM(lTxt50000) THEN EXIT(FALSE)
0 -
Nice.
Maybe if you use a global ConfirmShowed, you can prevent the CONFIRM is executed twice?
Disadvantage of this solution is, you have to modify multiple pages to make it work for every user.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
Unfortunetly global variable doesnt works
I am courios about why this trigger is run twice during RC Page closing?0 -
I think this is not going to work.
The trigger is also fired when choosing other menu options beneath Role Center.
Tino Ruijs
Microsoft Dynamics NAV specialist0
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
- 322 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