web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

message when closing nav

(0) ShareShare
ReportReport
Posted on by

is there a way to set up dynamics nav to give you a message asking you when you close  out nav if you want to close the application it seems very easy to just close the program without any alerts ?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Amol Salvi Profile Picture
    18,698 on at
    RE: message when closing nav

    Hi

    I think it is not possible in NAV

    Read following

    community.dynamics.com/.../212684

  • Suggested answer
    Suresh Kulla Profile Picture
    50,235 Super User 2025 Season 2 on at
    RE: message when closing nav

    Unfortunately, there is no trigger to use to stop the users closing the NAV application, you can stop users closing a page in NAV but not the application itself. You can add some message when they close it but it will not prevent users closing it.

  • Suggested answer
    Binesh Profile Picture
    7,885 on at
    RE: message when closing nav

    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 Objects/functions, not you can add built in function. this can be done by NAV App developer.

    We don't have any place to write the code for playing NAV Application.

  • manish.yadav Profile Picture
    1,893 on at
    RE: message when closing nav

    Thank you for your better information sir.

    I have applied your code in my some pages..It is working fine.

    manish

  • Verified answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at
    RE: message when closing nav

    Unfortunately only have the control over the pages and do not have the control over the application.

  • keoma Profile Picture
    32,729 on at
    RE: message when closing nav

    hi, what is your base issue?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#3
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans