Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

getCore().byId() not working

$
0
0

Hi Experts,

 

What is the difference between this.getView().byId("id123") and sap.ui.getCore().byId("id123")?

 

Please see the following JS bin:

 

http://jsbin.com/facokikilo/edit?html,output

 

I am trying to get the reference of the two buttons and set their button type dynamically, but the getCore().byId() method is failing to return the reference of the buttons.

 

Could you check and let me know how to resolve this issue.

 

Regards,

Shashidhar


Viewing all articles
Browse latest Browse all 3363

Trending Articles