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

Dynamics 365 Business Central: How to split a string on a fixed character (delimiter or separator) via AL

Hi Readers.Today I would like to talk about how to split a string on a fixed character (delimiter or separator) via AL. I recently encountered...

1 day ago

Dynamics 365 Business Central: Control over adjustment of one item (Adjust Inventory)

Hi, Readers.Today I would like to share another mini tip about Business Central, how to control over adjustment of one item (Adjust Inven...

2 days ago

Business Central 2025 wave 2 (BC27): Install UK localization as an extension to the base app (UK Delocalization)

Hi, Readers.Dynamics 365 Business Central 2025 wave 2 (BC27) is generally available. More details: General Available: Dynamics 365 Busine...

3 days ago

Dynamics 365 Business Central: How to check whether the current page/report is standard or customized

Hi, Readers.Today I would like to share another mini tip about Business Central, how to check whether the current page is standard or customiz...

4 days ago

Dynamics 365 Business Central Blog Series: Date and time handling

Articles in this series: How to use Date and Time Functions (Get Today, Yesterday, Tomorrow, First and Last day of the month…) How to use Date...

5 days ago

Dynamics 365 Business Central: How to check if the time zone supports daylight saving time (DST) via AL

Hi, Readers.Today I would like to share another mini tip about Business Central, how to check if the time zone supports daylight saving time (...

8 days ago

Dynamics 365 Business Central: Adding comments to Factbox/Report (Displaying Comments in a FactBox/Report)

Hi, Readers.Last week we briefly discussed how to add Notes (System Parts) from FactBox to a report. Later I received some feedback that it mi...

9 days ago

Dynamics 365 Business Central: How to add or subtract hours from a DateTime field

Hi, Readers.Today I would like to share another mini tip about Business Central, how to add or subtract hours from a DateTime field. Date...

10 days ago

Dynamics 365 Business Central: Analyzing performance issues using the page inspector

Hi, Readers.Today I would like to share another mini tip about Business Central, how to analyze performance issues using the page inspect...

11 days ago

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

Cumulative Update (January, 2026) for Microsoft Dynamics 365 Business Central is now released. BC27: CU03 Cloud (SaaS): Managing Production an...

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