ERROR at closing page trigger is not work

Virin
Virin Member Posts: 3
edited 2014-09-09 in NAV Three Tier
Dear All,
I have one page before closing page, I code to check information. if information is not enough the page must not close.
I try to use ERROR on trigger close page but it's not work.

Any advice, Thank you.

Comments

  • pdj
    pdj Member Posts: 643
    I seem to recall that EXIT(FALSE) does the trick.

    EDIT: SORRY! I'm thinking of forms! I don't know if it is the same with pages.
    Regards
    Peter
  • Virin
    Virin Member Posts: 3
    Thx pdj,
    I ready try that method but it not work with page.
  • allenyyzhou
    allenyyzhou Member Posts: 142
    Maybe you should use OnQueryClosePage function in page, if you do not want user to close the page, just throw an error.
  • aniish
    aniish Member Posts: 27
    yes, you can use OnQueryClosePage trigger on page to write your condition. if condition will not match, will give an error and restrict to close page.