There are no secrets to success. It is the result of preparation, hard work, and learning from failure.

Friday, 13 May 2016

Difference between bindAggregation and bindItems

Click here and follow my SAP UI5/FIORI snippets and information Page
                                       bindItems(path,template)
Example:-

                       
                         var list=this.getView().byId("list_Id");
                          var stanardListItm=new sap.m.StandardListItem({
                       title:"{fname}",
                       counter:"{mob}"
                                          });
                         list.bindItems("/Records",stanardListItm);

                      bindAggregation(aggregation, path, template)

Example:- 
                                 var stanardListItm=new sap.m.StandardListItem({
                       title:"{fname}",
                       counter:"{mob}"
                                          });
                          var list=this.getView().byId("list_Id");
                         list.bindAggregation("items", "/Records",stanardListItm);         

2 comments: