Options

Do you wont to close NAV? Confirmation Page

WojtekmWojtekm Member Posts: 123
edited 2014-02-19 in NAV Three Tier
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,

Comments

  • Options
    tinoruijstinoruijs Member Posts: 1,226
    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 specialist
  • Options
    WojtekmWojtekm Member Posts: 123
    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)
    
  • Options
    tinoruijstinoruijs Member Posts: 1,226
    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 specialist
  • Options
    WojtekmWojtekm Member Posts: 123
    Unfortunetly global variable doesnt works :cry:
    I am courios about why this trigger is run twice during RC Page closing?
  • Options
    tinoruijstinoruijs Member Posts: 1,226
    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 specialist
Sign In or Register to comment.