68
We have a requirement to trigger some code any time ANY page is opened (related to some enhanced security functionality). Right now we have to subscribe to EVERY page's openpage event to run our code. It would be great if there was a global trigger that fired any time any page is opened. We could then subscribe to that single event to run our code.
Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! We are tracking this idea and if it gathers more votes and comments we might consider it in the future.

However, a generic event is currently not on the roadmap due to performance impact of such a generic event, i.e., having to call subscriber code on every page open, regardless of whether subscriber is applicable to page or not (this will slow down page rendering, an area which is very sensitive to performance degradation and is causing customer concern). 

In addition, the problem with a global OnOpenPage is how to give access to the page being opened (related to https://github.com/Microsoft/AL/issues/1593)? There is currently not a generic page concept, so just adding the event will probably not solve anything. 

It would be great of you could provide some examples in comments on what you would like to use the event for (i.e., what business logic to run on all pages), as the solution to those scenarios that might be something different than a global event.

Best regards,
Business Central Team

Comments

R

I would like to see a similar event for reports as well.

Category: Development

R

Please provide at least the page or the pageid and rec as parameter.

Category: Development