Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Exit Button

(0) ShareShare
ReportReport
Posted on by 19

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

  • Suggested answer
    RockwithNav Profile Picture
    6,720 on at
    RE: Exit Button

    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.

  • Verified answer
    Tharanga Chandrasekara Profile Picture
    23,116 on at
    RE: Exit Button

    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)

  • Verified answer
    Alexander Ermakov Profile Picture
    28,094 on at
    RE: Exit Button

    I think we cannot have this for the whole app. At least, I have no good ideas.

  • Suggested answer
    Binesh Profile Picture
    7,885 on at
    RE: Exit Button

    Hey Write these code in "OnQueryClosePage" Trigger in Page that page you want.

    IF CONFIRM('Are you sure want to exit?',FALSE) THEN
       EXIT
    ELSE 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.

  • Andreas Panayiotou Profile Picture
    19 on at
    RE: Exit Button

    I think this is working for specific pages not the whole app

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,094 on at
    RE: Exit Button

    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

  • Suggested answer
    Amol Salvi Profile Picture
    18,696 on at
    RE: Exit Button

    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

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.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans