Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
How to create a list in SAPUI5?
I have gone through your code and it looks your list binding is incorrect. When you bind your data, your data should be in a JSON array format. Please find below the updated working code.
Example
var oModelData =
[
{Animal: "Kangaroo", Zoo: "Sydney"},
{Animal: "Tiger", Zoo: "Melbourne"},
{Animal: "Lion", Zoo: "Alaska"}
];
var oItem = new sap.m.StandardListItem({
title : "{ Animal }",
description : "{ Zoo }"
});
var oList = new sap.m.List({
headerText:" Items",
items: {
path: "/",
template: oItem
}
});
Hope it helps!
Advertisements
