How to prevent closing the page after error?

Why page is closing after error and how to prevent this scenario?

Answers

  • krikikriki Member, Moderator Posts: 9,115
    It probably depends in which page-trigger the error pops up. Errors in some triggers, force the page to close.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • MarharytaMykytenkoMarharytaMykytenko Member Posts: 53
    kriki wrote: »
    It probably depends in which page-trigger the error pops up. Errors in some triggers, force the page to close.

    this error occurs after clicking "OK" button. Can I prevent closing page after this error in some way?
  • krikikriki Member, Moderator Posts: 9,115
    You need to avoid the error. The page is already in state to be closed.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • RockWithNAVRockWithNAV Member Posts: 1,139
    Ideally NAV should not close, Anything in Event Viewer?
  • AlexeyShaminAlexeyShamin Member Posts: 80
    edited 2020-07-02
    If error on trigger OnCose - NAV will show error message and close page after error
    If error on trigger OnModify - NAV will show error and ask - discard changes or not
    if error on trigger OnQueryClose - NAV will show message with text from error and page will stay open
  • RockWithNAVRockWithNAV Member Posts: 1,139
    Yes a valid point -On Which trigger the code is written?
Sign In or Register to comment.