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 1 (BC26): Access report and request metadata in Word layouts

Hi, Readers.The public preview for Dynamics 365 Business Central 2025 release wave 1 (BC26) is available. Learn more: Link. I will contin...

3 hours ago

Business Central 2025 wave 1 (BC26): The public preview of the Sales Order Agent is now available in both the United States and the United Kingdom

Hi, Readers.The public preview for Dynamics 365 Business Central 2025 release wave 1 (BC26) is available. Learn more: Link. I will contin...

20 hours ago

Business Central 2025 wave 1 (BC26): New VS Code actions from the Web Client (Generate launch configurations and Get selected as dependencies on the Extension Management)

Hi, Readers.The public preview for Dynamics 365 Business Central 2025 release wave 1 (BC26) is available. Learn more: Link. I will contin...

1 day ago

Business Central 2025 wave 1 (BC26): AL has support for multiline string literals (Multiline strings)

Hi, Readers.The public preview for Dynamics 365 Business Central 2025 release wave 1 (BC26) is available. Learn more: Link. I will contin...

1 day ago

Business Central 2025 wave 1 (BC26): Define allowed languages per environment (Limit the choices for language selection)

Hi, Readers.The public preview for Dynamics 365 Business Central 2025 release wave 1 (BC26) is available. Learn more: Link. I will contin...

1 day ago

Business Central 2025 wave 1 (BC26): Preview PDF attachments directly in web client (No control add-in and APIs)

Hi, Readers.The public preview for Dynamics 365 Business Central 2025 release wave 1 (BC26) is available. Learn more: Link. I will contin...

2 days ago

Business Central 2025 wave 1 (BC26): Optimize screen estate usage on the web (Resize the FactBox pane)

Hi, Readers.The public preview for Dynamics 365 Business Central 2025 release wave 1 (BC26) is available. Learn more: Link. I will contin...

2 days ago

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

Cumulative Update (March, 2025) for Microsoft Dynamics 365 Business Central is now released. BC26 Preview: Version: W1 26.0 (Platform 26.0.310...

2 days ago

The public preview for Dynamics 365 Business Central 2025 release wave 1 (BC26) is available

Hi, Readers.The public preview environment for Dynamics 365 Business Central 2025 release wave 1 (BC26) is available now. You can create it in...

4 days ago

Dynamics 365 Business Central: Add new actions (Show more and Show less) to show and hide subgroups on the page

Hi, Readers.Today I would like to share an interesting requirement, how to add new actions (Show more and Hide) to show and hide subgroups on ...

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