Hi Experts,
How to create the dummy list of data for mobile using sap.m controls. please suggest some idea. i tried some code but i want more data and images in the list. i attach my sample code here. and also i attach the image that i want to create dummy list for that.
Code:
var oListStandardNoImageNoHeader = new sap.m.List({
inset : false
});
var itemTemplate = new sap.m.StandardListItem({
title : "{HandlingUnit}",
description: "Test Value",
iconInset: false
});
var app = new sap.m.App();
var aData = {
"custSomeData":
[
{"HandlingUnit":"Sabina Arun"},
{"HandlingUnit":"Srikesh"},
{"HandlingUnit":"Vinoth"},
{"HandlingUnit":"Annie"}
]};
var oModel = new sap.ui.model.json.JSONModel();
oModel.setData(aData);
oListStandardNoImageNoHeader.setModel(oModel );
oListStandardNoImageNoHeader.bindAggregation("items","/custSomeData" , itemTemplate);