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): 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...

1 hour 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...

1 day 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...

2 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...

3 days ago

Business Central 2026 release wave 1 (BC28): Send by Email & Standard Document Attachment Factbox for Posted Sales Shipments and Return Receipts

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): Support for packaging analysis views in extensions (Create analysis views via AL)

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

4 days ago

Business Central 2026 release wave 1 (BC28): Show avatars for record creators and modifiers in lists (Created / Updated by) – Display data audit fields without customization

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

4 days ago

Business Central 2026 release wave 1 (BC28): Create purchase quotes for contacts (without a vendor)

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

5 days ago

Business Central 2026 release wave 1 (BC28): Define item attributes for item variants

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

5 days ago

Business Central 2026 release wave 1 (BC28): Add pictures to item variants to differentiate product options

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

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