- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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!
- Related Articles
- How to create a list in Kotlin?
- How to create a replicated list of a list in R?
- How to create a List Spinner in Java?
- How to create a read-only list in Java?
- How to create permutations as a list in R?
- How to create a list of matrices in R?
- How to create unordered list in HTML
- How to create a filter list with JavaScript?
- How to create a dropdown list using JavaScript?
- How to create a dictionary with list comprehension in Python?
- How to create a List with Constructor in C++ STL
- How to create a pandas DataFrame using a list?
- How do you create a list in Java?
- How to create an ordered list in HTML?
- How to create an empty list in Python?

Advertisements