Is there any way to make exit button ask a question before it exits the program? Sometimes it happens to shut down the main card by mistake and then open everything from scratch..
*This post is locked for comments
Hi Andreas
By looking at your questions you are looking something link Confirm Dialog Box .
Look at this link
msdn.microsoft.com/.../dd301403(v=nav.90).aspx
Hi Andreas,
There has been a fruitful discussion about that recently here:
forum.mibuso.com/.../do-you-wont-to-close-nav-confirmation-page
Hope it helps
I think this is working for specific pages not the whole app
Hey Write these code in "OnQueryClosePage" Trigger in Page that page you want.
IF CONFIRM('Are you sure want to exit?',FALSE) THEN EXITELSE BEGIN ERROR('');END;
Or where ever you want, write based on trigger it fired.
See you can customize functions, not you can add built in function. this can be done by NAV App developer.
I think we cannot have this for the whole app. At least, I have no good ideas.
I don't think we can add it to the complete application. I check the codeunit 01 and was not so lucky. (May be others can help and enlighten us as well)
I belief there's no any standard way of doing this. You just have to find a way workaround. As Suggested by other members OnQueryclose option will work but it will only work if user closes the Page but if he accidentally turns off NAV then there's no way.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Saurav.Dhyani 2 Super User 2025 Season 2
RK-25090803-0 1