Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Exit Button

Posted on by 17

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
    RockwithNav 6,562 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
    TharangaC Profile Picture
    TharangaC 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
    Alexander Ermakov 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
    Binesh 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.

  • RE: Exit Button

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

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 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
    Amol Salvi 18,694 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans