Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: How to get reference of UI controls in a JSON Controller?

$
0
0

You can indeed have various (named) models, all of which can be available to your view(s), and depending on your need, have the proper model bound to one ore more of your view elements.

 

If you do need to refer to UI elements -- but again, I strongly advise against it -- you can do so by using for instance:

 

var oTable = sap.ui.getCore().byId("yourTableId"); //returns instance of your table, or null is no table found


Viewing all articles
Browse latest Browse all 8124

Trending Articles



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