89
In BC12 there where an event in Codeunit 1, OnRoleCenterOpen, that was triggered from the platform. The event was a bit special since it was called for every user when they where opening the role center, but if an error happened in the subscriber, the error was suppressed. It was mainly designed for us to be able to show a notification on logon if needed.
In BC13 Codeunit 1 was removed and we're recommended to use OnRoleCenterOpen in Codeunit 9170 as a replacement.
But the new event is triggered from code in Role Centers Activities pages, not from the platform.
This have a few complications:
1. Users can use custom Rolecenters that does not trigger OnRoleCenterOpen, then our code is not triggered at all
2. Errors are thrown in the activities page, and I assume that if one subscriber fails the remaining subscribers won't be called
3. On some Role Centers there are several Activities pages that all fires the OnRoleCenterOpen - Instead of one event being fired per Role Center. This is causing unnecessary code being run
We rely on the OnRoleCenterOpen for our Self Monetization App, and I don't like the new behavior.
Please bring back the old implementation of the OnRoleCenterOpen event from a system codeunit, working in the same way as in BC12
In BC13 Codeunit 1 was removed and we're recommended to use OnRoleCenterOpen in Codeunit 9170 as a replacement.
But the new event is triggered from code in Role Centers Activities pages, not from the platform.
This have a few complications:
1. Users can use custom Rolecenters that does not trigger OnRoleCenterOpen, then our code is not triggered at all
2. Errors are thrown in the activities page, and I assume that if one subscriber fails the remaining subscribers won't be called
3. On some Role Centers there are several Activities pages that all fires the OnRoleCenterOpen - Instead of one event being fired per Role Center. This is causing unnecessary code being run
We rely on the OnRoleCenterOpen for our Self Monetization App, and I don't like the new behavior.
Please bring back the old implementation of the OnRoleCenterOpen event from a system codeunit, working in the same way as in BC12
STATUS DETAILS
Under Review
Comments
It would also be nice when a developer can program and a user can configure which notifications to show on which role center page.
Category: Development
Business Central Team (administrator)