Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

HANA Server site Java script .. how to call a function within a function.

$
0
0

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");

},


Viewing all articles
Browse latest Browse all 6412

Trending Articles