Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3462

Re: sap.ui.getCore(),setModel is not working

$
0
0

Hi Robin ,

 

       Thank you for your nice information on this .

 

Could you please let me know the clear difference among the below code.

 

sap.ui.getCore().setModel(oModel,"MyModel");

this.getView().setModel(oModel,"MyModel");

this.setModel(oModel,"MyModel");


I want to know which one is used in which context .


And at the same time I want to know the difference between the below code also


sap.ui.getCore().byId("Id of the ui control");

this.getView().byId("Id of the ui control");

this.byId("Id of the ui control");


Kindly explain the difference among them , which one is used at which context.



Viewing all articles
Browse latest Browse all 3462

Trending Articles



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