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

Re: Bar id using this.byId() gives error when try to set its vibility

$
0
0

since this is an xml view, this.getView().byId("idBar") will not work....xml view adds a prefix to the control ids..

 

you have to use

this.getView().byId("viewID--idBar")  , where viewID is the id you have assigned to the view somewhere


if you are in the controller, you should do this.getView().byId("idBar") ...this will also work..if it does not work, then check for 'this' ..that could be the local event instead of the controller...




Viewing all articles
Browse latest Browse all 8124

Trending Articles



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