Executed as a page closes and before the OnClosePage Trigger executes.
- Type: Booleantrue to close the page; otherwise false. This value is checked after each function call.
|The OnQueryClose trigger is not fully supported by the Microsoft Dynamics NAV Web client or Microsoft Dynamics NAV Portal Framework for Microsoft SharePoint 2010. When the page displays in the Microsoft Dynamics NAV Web client or on a Microsoft SharePoint site, the trigger is only invoked when the page is hosted in a modal popup window (MPO). The trigger is not invoked when a page is hosted in a Microsoft SharePoint Web Part page or application page.|
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.