Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: getCore().byId() not working

$
0
0

Hi Shashidhar,

 

this.getView() refers to your view associated to the controller.

sap.ui.getCore() refers to the core component which is available throughout the application. 

 

In your case, this.getView().byId("idButton2") works. JS Bin - Collaborative JavaScript Debugging

But, if you want to get through core, then view id suffix needs to be added, something like sap.ui.getCore().byId("__xmlview0--idButton2") . JS Bin - Collaborative JavaScript Debugging

 

Regards,

Sai Vellanki.


Viewing all articles
Browse latest Browse all 3548

Trending Articles



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