Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html><head>
    <meta http-equiv='X-UA-Compatible' content='IE=edge' />
    <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
    
    <title>OData Date Formats</title>
    
    <script id='sap-ui-bootstrap' type='text/javascript' 
        src='https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js'
          data-sap-ui-theme='sap_bluecrystal'
        data-sap-ui-libs='sap.m'
        data-sap-ui-xx-fakeOS='ios'>
  
    </script> 
    
    
    <script>
      
      
            var oListStandardNoImageNoHeader = new sap.m.List({
                inset : false
            });
 
            var itemTemplate = new sap.m.StandardListItem({
                title : "{HandlingUnit}",
              // icon: "icons/yellow_sign_micro.png",
                description: "Test Value",
                iconInset: false
            });
      
      
      
      
      
      
      
// Create App      
var app = new sap.m.App();
//  Create Dummy data                       
var aData =          {  
    "custSomeData":  
            [  
                {"HandlingUnit":"A"},  
                {"HandlingUnit":"B"},  
                {"HandlingUnit":"C"},  
                {"HandlingUnit":"D"}  
             ]};  
                             
//  Create Model
          var oModel = new sap.ui.model.json.JSONModel();
          oModel.setData(aData);          
                      
      // Create Aggregation Binding
      oListStandardNoImageNoHeader.setModel(oModel );
      oListStandardNoImageNoHeader.bindAggregation("items","/custSomeData" , itemTemplate);
      
      
            var page1 = new sap.m.Page("page1", {
                title:"Customer Data",
                content : [oListStandardNoImageNoHeader],
                enableScrolling: false
            });
                        
            app.addPage(page1);
            app.placeAt("body");
        
      
      
      
      
      
    </script>
    </head>
    <body class='sapUiBody'>
        <div id='body'></div>
    </body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers