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: Check posting date before posting (preview posting) in the sales and purchase documents – Customization

Hi, Readers.Today I would like to briefly share a question that I was asked recently, how to check posting date before posting (preview postin...

14 hours ago

Dynamics 365 Business Central: How to quickly get User Experience/Experience Tier (Essential or Premium) in AL

Hi, Readers.Today I would like to share another mini tip about Business Central, how to quickly get User Experience (Essential or Premium) in ...

1 day ago

Business Central 2025 wave 2 (BC27): Create a new sequential unique GUID (Guid.CreateSequentialGuid Method)

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

2 days ago

Business Central 2025 wave 2 (BC27): Get early access preview versions as a partner – Early Access Preview (Next Major) environment in Cloud/SaaS

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

3 days ago

Major update of Dynamics 365 Business Central 2025 release wave 2 (BC27) is available for existing customers

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

7 days ago

Business Central 2025 wave 2 (BC27): Deferral reporting enhancements (Replacing RDL layouts with Word and Excel formats and adding three new list pages)

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

7 days ago

Business Central 2025 wave 2 (BC27): Support for new ExtendedDataType value: Document (display/preview a PDF as a portrait image in FactBox)

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

8 days ago

Business Central 2025 wave 2 (BC27): App version in “Copy error details”/”Share details via”

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

9 days ago

Business Central 2025 wave 2 (BC27): Automatically create multiple fixed asset cards

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

10 days ago

Cumulative Update Summary for Microsoft Dynamics 365 Business Central (October, 2025)

Cumulative Update (October, 2025) for Microsoft Dynamics 365 Business Central is now released. BC27: CU00 General Available: Dynamics 365 Busi...

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