Hi,
i am facing problem in calling a globally declared variable in view to controller.How to call the variable in the controller?
eg:
view.js file
sap.ui.jsview("Race.One_Project", {
var load=true;
}
controller.js file
sap.ui.controller("Race.One_Project", {
care:function(){
if(load==true){
alert(hi);
}else
alert(bye);
}
in this example how to call the load variable in controller that is declared globally in view?