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): Map new Dataverse fields (New and custom Dataverse tables are readily available for mapping from the lookup on Integration Table column)

Hi, Readers.Dynamics 365 Business Central 2026 wave 1 (BC28) is generally available. More details: General Available: Dynamics 365 Busine...

17 hours ago

Dynamics 365 Business Central: How to add a “TAB” character to a string via AL

Hi, Readers.Today I would like to share another mini tip about Business Central, how to add a “TAB” character to a string via AL. ...

1 day ago

Dynamics 365 Business Central: How to display a custom Application Version (e.g., from W1 28.0 to YUN ZHU 28.0)

Hi, Readers.Today I would like to talk about an interesting topic, how to display a custom Application Version (e.g., from W1 28.0 to YUN ZHU ...

4 days ago

Dynamics 365 Business Central: How to set Company Badge (System Indicator) via AL Code – Automatically set Company Badge

Hi, Readers.Today I would like to talk about how to set Company Badge (System Indicator) via AL Code – Automatically set Company Badge. ...

5 days ago

Business Central 2026 release wave 1 (BC28): Storing Document Attachments outside the database (No customization) – See benefits of external storage support for document attachments

Hi, Readers.Dynamics 365 Business Central 2026 wave 1 (BC28) is generally available. More details: General Available: Dynamics 365 Busine...

6 days ago

Dynamics 365 Business Central: How to easily prevent users from adding or modifying Links and Notes (Making Links and Notes Read-Only)

Hi, Readers.Today I would like to share another mini tip about Business Central, how to easily prevent users from adding or modifying Links an...

7 days ago

Dynamics 365 Business Central: How to add Marketing Text Factbox to Item List page

Hi, Readers.Today I would like to talk about how to add Marketing Text Factbox to Item List page. For any item registered in Business Central,...

8 days ago

Major update of Dynamics 365 Business Central 2026 release wave 1 (BC28) is available for existing customers

Hi, Readers.Dynamics 365 Business Central 2026 wave 1 (BC28) is generally available. More details: General Available: Dynamics 365 Business Ce...

11 days ago

Business Central 2026 release wave 1 (BC28): Run AL tests from Visual Studio Code (Test codeunits and test methods)

Hi, Readers.Dynamics 365 Business Central 2026 wave 1 (BC28) is generally available. More details: General Available: Dynamics 365 Busine...

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