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

Re: SAPUI5 (sap.m.List) : Binding Problem

$
0
0

Hi Friends,

I am trying to do List example from the link provided by Dario Matiz.

It is showing empty list. Can you please help me to solve my issue

 

createContent : function(oController) {

  var oModel = new sap.ui.model.json.JSONModel("http://services.odata.org/Northwind/Northwind.svc/Employees?$format=json",true);

  sap.ui.getCore().setModel(oModel, 'zzlistmodel')

  var oList = new sap.m.List("listId",{);

  var oItemTemplate = new sap.m.StandardListItem("slist",

  {title : "{zzlistmodel>EmployeeId}",

  description : "{zzlistmodel>LastName}"});

 

 

  return new sap.m.Page({

  title: "List Example",

  content: [

oList.bindAggregation("items", "zzlistmodel>/value", oItemTemplate),

          

 

  ]

  });

  }


Viewing all articles
Browse latest Browse all 9069

Trending Articles



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