Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

how to call to method internally inside the controller

$
0
0

Hi ,

 

 

I've a controller and I want from some function to call to other function inside this controller, how it can be done?

 

var oButton = new sap.ui.commons.Button({            text: "Re",            style: sap.ui.commons.ButtonStyle.Accept,            press: oController.myFunction        });

when user click on the button it invoke myFunction inside the controller

 

internalFunction:function(){
}
myFunction :function(oEvent){
var aa = internalFunction()
}

When I try the following I got error that the function doesnt exist ,any idea?

 

 

Thanks,

Joerg


Viewing all articles
Browse latest Browse all 3441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>