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 2024 release wave 2 (BC25)

The 2024 release wave 2 plan covers all new functionalities planned to be delivered to market from October 2024 to March 2025. Check out the f...

9 hours ago

The release plan for Dynamics 365 Business Central 2024 release wave 2 (BC25) is available now!!!

Hi, Readers.Early morning in Japan time today, the 2024 release wave 2 plans for Microsoft Dynamics 365 and Power Platform has been released! ...

1 day ago

Archiving Projects (Jobs) in Microsoft Dynamics 365 Business Central

Microsoft Dynamics 365 Business Central is a powerful Enterprise Resource Planning (ERP) solution that offers a wide range of features. One su...

1 day ago

Dynamics 365 Business Central: Conversion between Blob data type and Media/MediaSet data type

Hi, Readers.Today I would like to talk about how to convert between Blob data type and Media/MediaSet data type in AL.As you might know, there...

1 day ago

Dynamics 365 Business Central: About the automatic filtering problem after using Page.SetSelectionFilter Method

Hi, Readers.Today I would like to briefly share a question I saw yesterday in the Dynamics 365 Community, Page – Filter Reset – af...

5 days ago

Dynamics 365 Business Central: Publish without debugging (Ctrl+F5) and Debug without publishing (Ctrl+Shift+F5)

Hi, Readers.Today I would like to share a mini tip about Business Central development, Publish without debugging (Ctrl+F5) and Debug without p...

6 days ago

Cumulative Update Summary for Microsoft Dynamics 365 Business Central(July, 2024)

Cumulative Update (July, 2024) for Microsoft Dynamics 365 Business Central is now released. BC24: Released Updates for Microsoft Dynamics 365 ...

8 days ago

Dynamics 365 Business Central: How to get the full version text in Help & Support via AL (Record daily version information)

Hi, Readers.Today I would like to talk about an interesting topic, how to get the full version text in Help & Support via AL.From the Help...

8 days ago

How to delete Incoming Document Records from Posted Documents in Dynamics 365 Business Central

Hi, Readers.Today I would like to talk about a simple topic, how to delete Incoming Document Records from Posted Documents in Dynamics 365 Bus...

9 days ago

Dynamics 365 Business Central: How to check BaseApp version via AL (Include First-party localization)

Hi, Readers.In Dynamics 365 Business Central: Countries/regions where Microsoft provides the regulatory compliance and other local functionali...

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