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: Format File Size as KB or MB in AL

Hi, Readers.Today I would like to share another mini tip about Business Central, how to format File Size as KB, MB in AL. As you might know, f...

2 days ago

Dynamics 365 Business Central: How to add a user signature when sending mail from BC (E-mail Signature)

Hi, Readers.Last week, I saw an interesting question in Business Central forum, when sending emails from BC, is it possible to add a user̵...

3 days ago

Dynamics 365 Business Central: Change the exchange rate on each journal line/document

Hi, Readers.Today I would like to briefly talk about how to change the exchange rate on each journal line.If you trade in different currencies...

4 days ago

Dynamics 365 Business Central: How to export all pages with SourceTable number (list of pages with corresponding tables)

Hi, Readers.Today I would like to talk about how to export all pages with SourceTable number (list of pages with corresponding tables) in Busi...

5 days ago

Dynamics 365 Business Central: How to use OAuth 2.0 in AL with SecretText (Using codeunit 501 OAuth2)

Hi, Readers.Today I would like to briefly talk about how to use OAuth 2.0 in AL with SecretText. AL is the programming language that is used f...

9 days ago

Dynamics 365 Business Central: How to create a blank layout for the report within BC

Hi, Readers.Today I would like to share another mini tip about Business Central, how to create a Blank Layout for the report within BC. B...

10 days ago

Business Central 2024 wave 2 (BC25.1): New URL parameter to change page layout (layout=analysis/list/talltiles/tiles)

Hi, Readers.Dynamics 365 Business Central 2024 wave 2 (BC25) is generally available. More details: General availability: Dynamics 365 Business...

11 days ago

Business Central 2024 wave 2 (BC25.1): Use embedded Power BI reports out of the box (In-client Power BI reports)

Hi, Readers.Dynamics 365 Business Central 2024 wave 2 (BC25) is generally available. More details: General availability: Dynamics 365 Bus...

12 days ago

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

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

15 days ago

Dynamics 365 Business Central: Define default location for sales or purchase

Hi, Readers.Today I would like to talk about how to define default location for sales or purchase in Business Central. This is a question I so...

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