Skip to Content
Former Member
Mar 03, 2017 at 02:28 PM

Running a custom method on a controls rendering from a XML view level in SAPUI5


I would like to implement some kind of ACL in a SAPUI5 XML view.

onBeforeRendering="customFunc"     />

Is there a way to launch the "customFunc" on some kind of "render"/"before render" event of the control? The "customFunc" is defined in a base controller (currently parent to the one that initializes the view and therefore - the control (in this case, a Button, but not always)).

The "customFunc" as mentioned above, is gonna have to be called in various controls. So is there a global method/event like the mentioned above "onBeforeRendering"?

Is this the best way of handling some globally available, custom methods (via the base controller)?