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

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

2 days ago

Business Central 2025 wave 2 (BC27.1): Connect AI agents to Business Central through MCP server (Dynamics 365 Business Central MCP)

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

4 days ago

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

Cumulative Update (November, 2025) for Microsoft Dynamics 365 Business Central is now released. BC27: CU01 Cloud (SaaS): Managing Production a...

4 days ago

Dynamics 365 Business Central Blog Series: Debugging in AL

Articles in this series: Snapshot Debugging (Debugging in Cloud Production) Snapshot Debugging (Debugging in Cloud Production) How to set a co...

7 days ago

なんでもCopilot 55: ERPの進化を体感!Copilot × Dynamics 365 Business Central (2025/11/19 Wed 20:00 〜 21:30 オンライン)

Register Now (Registration Period: 2025/11/05(Wed) 21:00 〜 2025/11/19(Wed) 21:30) 当日のアジェンダ スケジュール タイトル 登壇者 20:00-20:10 オープニング もくだいさん&ぺぺさん&にしさん...

8 days ago

Dynamics 365 Business Central: How to set a condition on a breakpoint in debugging (Conditional breakpoints)

Hi, Readers.Today I would like to talk about how to set a condition on a breakpoint in debugging (Conditional breakpoints). The basic concept ...

8 days ago

Dynamics 365 Business Central: Automatically create Lot/Serial No. Information card on posting (No customization)

Hi, Readers.Today I would like to talk about how to automatically create Lot/Serial No. Information card on posting (No customization).As you ...

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