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...