Hi ,
I need the syntax to call a function within a function within the controller. I need the syntax for the red highlighted.
can anyone please help me out.
Code :
onBeforeShow: function(){
var toolBar_PopUp= new sap.m.Toolbar({
width : "100%",
height: "2rem",
content:[new sap.m.Label({text:"Function call"}),
new sap.m.ToolbarSpacer(),
new sap.m.Button({
press : function(){
popup();
}
})
]
});
},
popup : function(){
alert("HI");
},