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),
]
});
}