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: 8,914
    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!
    NAV TechDays 2020: 19 & 20 November 2020, Antwerp (Belgium)
  • MarharytaMykytenkoMarharytaMykytenko Member Posts: 42
    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: 8,914
    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!
    NAV TechDays 2020: 19 & 20 November 2020, Antwerp (Belgium)
  • RockWithNAVRockWithNAV Member Posts: 971
    Ideally NAV should not close, Anything in Event Viewer?
  • AlexeyShaminAlexeyShamin Member Posts: 16
    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: 971
    Yes a valid point -On Which trigger the code is written?
Sign In or Register to comment.