Loading...

How to validate report selections in Business Central

How to validate report selections in Business Central
Recently I had to validate some filter selections on a report in Business Central and found out it was not so straight forward to do. What happened when using the trigger OnPreDataItem() or trigger OnPreReport() triggers was that I was able to validate the filter selections by user but the user experience was not optimal since the selection page closed when the validation error occured. What I came up with was using the trigger OnQueryClosePage(CloseAction: Action): Boolean trigger on the requestpage itself.

Published on:

Learn more
Posts on Microsoft Dynamics 365 Business Central Development
Posts on Microsoft Dynamics 365 Business Central Development

Recent content in Posts on Microsoft Dynamics 365 Business Central Development

Share post:

Related posts

Business Central 2026 release wave 1 (BC28): New template for getting started with creating agents

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

6 hours ago

Business Central 2026 release wave 1 (BC28): Manage database index usage and cost per company (View index and Turn off indexes)

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

10 hours ago

Business Central 2026 release wave 1 (BC28): AL developers can use semantic search on data and metadata

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

1 day ago

Business Central 2026 release wave 1 (BC28): Set default language for documents on the company level (Default Language Code)

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

1 day ago

Business Central 2026 release wave 1 (BC28): Create purchase orders from drop shipments

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

2 days ago

Business Central 2026 release wave 1 (BC28): Run AL objects and open record references using fully qualified names (Support for namespaces and fully qualified names)

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

3 days ago

Business Central 2026 release wave 1 (BC28): Add the Description 2 field to various pages to gain more insight (planning, routing, production order creation, and related processes)

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

3 days ago

Cumulative Update Summary for Microsoft Dynamics 365 Business Central (March, 2026)

Cumulative Update (March, 2026) for Microsoft Dynamics 365 Business Central is now released. BC28: Public Preview The public preview for Dynam...

5 days ago

Business Central 2026 release wave 1 (BC28): Audit user and group permissions across apps (new Permissions Overview page)

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

6 days ago

Business Central 2026 release wave 1 (BC28): Include approvals for requisition worksheets and item journals in your workflows (New standard workflows)

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

6 days ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy