Manipulating control accessed with "byId" has no effect
02:52 08 May 2020

I have a sample of icons in a HBox in an XML view as below:


  
  
  

In controller to set visible false, I am doing as:

let testIcon1 = this.getview().byId('test1');
testIcon1.setVisible(false);

But this isn't working.

sapui5