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 add a setup to the Manual Setup (1875, List) page

Hi, Readers.Today I would like to share another mini tip about Business Central, how to add a setup to the Manual Setup (1875, List) page. Thi...

1 day ago

Dynamics 365 Business Central: Where to find Microsoft’s Contact and Support Numbers?

Hi, Readers.Today, I’d like to briefly discuss a question I was recently asked by a partner, where to find Microsoft’s Contact and...

2 days ago

Dynamics 365 Business Central: How to check the font of a standard report

Hi, Readers.Today I would like to share another mini tip about Business Central, how to check the font of a standard report. This is a questio...

3 days ago

Explore migration options for Microsoft Dynamics NAV, Microsoft Dynamics GP, and Microsoft Dynamics SL customers

Business Central provides a modern cloud ERP foundation that helps organizations streamline operations, improve visibility, support AI-powered...

3 days ago

Dynamics 365 Business Central: Add a calculator to the sales order page

Hi, Readers.Today I would like to talk about how to add a calculator to the sales order page in Business Central. This is an interesting ...

4 days ago

Dynamics 365 Business Central Blog Series: Inspecting pages (Page inspection)

Articles in this series: Analyzing performance issues using the page inspector Analyzing performance issues using the page inspector How to ch...

5 days ago

Dynamics 365 CE vs Business Central: Which Microsoft ERP & CRM Solution Should You Learn or Implement in 2026?

Introduction Microsoft Dynamics 365 has transformed how organizations manage customer relationships, business operations, and financial proces...

6 days ago

Dynamics 365 Business Central: Searches for duplicate external document numbers in sales documents and posted documents (Standard function/procedure)

Hi, Readers.Today I would like to talk about how to search for duplicate external document numbers in sales documents and posted documents usi...

8 days ago

Dynamics 365 Business Central: Configure text search language for multilingual environments (Text Search Language Optimizer)

Hi, Readers.Today I would like to talk about how to configure text search language for multilingual environments (Text Search Language Optimiz...

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