extension of controller with new function

  • Klaus79
        4 years ago #19835

        I want to register an event listener with subscribe method. I get an error because the callback function in my subscribe method is not defined.

        var oEventBus = sap.ui.getCore().getEventBus();
        oEventBus.subscribe(“resetPassword”, “newStatusMessage”, this.openStatusDialog, this);
        How can I define (extend the controller) with function openStatusDialog?

        Mathieu Roll
            Has successfully completed the online course Introduction
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
            Has successfully completed the online course Basics (100)
          4 years ago #20000
          Up
          0
          Down
          ::

          Hello Klaus,

           

          please find attached an example application for the ui5 event bus.

          https://files.simplifier.io/f/baf22dcf2ce44dae87f9/?dl=1

        Viewing 2 posts - 1 through 2 (of 2 total)

        You must be logged in to reply to this topic.