Thursday, 22 October 2015

How the Data Binding in sap ui5?

In UI5 data binding is very simple comparative all other bindings.


there are only 4 steps we need to follow.

1_ ready the Json Data.

2_create the JsonModel.

3_add the Json Data to the JsonModel.

4_set the Json Model object globally to the Core.


this is the simple Binding.

EX:

step1:
var jsondata={info:"Rajendra  Mobility Developer"};

step2:

var jsonmodel=new sap.ui.model.json.JsonModel();

step3:

jsonmodel.setData(jsondata);

step4:

 sap.ui.getcore().setmodel(jsonmodel); // we can acces this core info anywhere in the application



No comments:

Post a Comment