Skip to Content

Function of one (first) SAPUI5 view controller can be called from another (second) SAPUI5 view controller –

if this function is subscribed to some event of EventBus in the first controller:

onInit: function() {
someFunctionOfTheFirstController: function (sChannelId, sEventId, sData) {
        "Function of the first controller " + sData

and the same event of EventBus is published in the second controller:

functionOfTheSecondController: function () {
        "is called from function of the second controller."

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. John Juan

    Thanks for sharing this! Had a really hard time figuring out how to call a function on the Master controller from the Details controller in a split app scenario. It was exactly what I was looking for.


Leave a Reply