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
Need help with this product?
We can help you with How to validate report selections in Business Central
If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.