Export (0) Print
Expand All

OnQueryClosePage Trigger

Microsoft Dynamics Nav 2009

Executes as a page closes and before the OnClosePage Trigger executes.

[Ok]:= OnQueryClosePage


Type: Boolean

true to close the page; otherwise false. This value is checked after each function call.

  • Pages

If the page that is closing and all its child pages return true in the OnQueryClosePage trigger, then the OnClosePage Trigger is called for all child pages and then for the parent page.

If an error occurs in the OnQueryClosePage trigger or it returns false, then the page is not closed.

You can use this trigger to write to the database.

Community Additions

© 2015 Microsoft