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 record extra serial or lot number information (Item Tracking Comments)

Hi, Readers.We discussed Automatically create Lot/Serial No. Information card on posting (No customization) before, today I’d like to sh...

8 hours ago

Information sharing: SQL Server 2025 is now GA – Business Central to Support it in 2026 Release Wave 1 (BC28)

Hi, Readers.I would like to share a piece of information today, at Ignite, Microsoft announce the general availability of SQL Server 2025. Thi...

1 day ago

Same Power, New Look: Microsoft Dynamics Business Central Wallpapers

Microsoft Dynamics Business Central has always stood for innovation, reliability, and business empowerment. With the introduction of the new l...

2 days ago

Dynamics 365 Business Central Blog Series: Customize the Role Center

Articles in this series: How to customize the Role Center in AL How to customize the Role Center in AL OnAction trigger on Role Center pages (...

2 days ago

Dynamics 365 Business Central: How to show Experience Tier (Essential or Premium) on the Companies (list page)

Hi, Readers.Today I would like to share another mini tip about Business Central, how to show Experience Tier (Essential or Premium) on the Com...

3 days ago

Dynamics 365 Business Central: How to determine whether the current environment is Sandbox or Production

Hi, Readers.Today I would like to briefly share a question that I was asked recently, how to determine whether the current environment is Sand...

4 days ago

Business Central 2025 wave 2 (BC27.1): Demo analytics with new enhanced demo data

Hi, Readers.Dynamics 365 Business Central 2025 wave 2 (BC27.1) is generally available. More details: Cumulative Update Summary for Micros...

7 days ago

Business Central 2025 wave 2 (BC27.1): Use the Account Payable Role Center

Hi, Readers.Dynamics 365 Business Central 2025 wave 2 (BC27.1) is generally available. More details: Cumulative Update Summary for Micros...

8 days ago

Business Central 2025 wave 2 (BC27.1): Print the Audit Trail report (report 330 “Audit Trail”)

Hi, Readers.Dynamics 365 Business Central 2025 wave 2 (BC27.1) is generally available. More details: Cumulative Update Summary for Micros...

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