Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3184

Dummy list with Images and Data

$
0
0

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);


Viewing all articles
Browse latest Browse all 3184

Trending Articles



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