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' />
  <script id="sap-ui-bootstrap" src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" data-sap-ui-libs="sap.m,sap.ui.layout" data-sap-ui-xx-bindingSyntax="complex" data-sap-ui-theme="sap_bluecrystal">
  </script>
  <script type="text/javascript">
    var model = new sap.ui.model.json.JSONModel({
      "Positions": [
          {
              "id": 123456,
              "article": "Abcde",
              "amount": 12
          },
          {
              "id": 654321,
              "article": "Edcba",
              "amount": 21
          }
      ]
    });
    
    var list = new sap.m.List({
      headerText: "Positions",
      items: {
        path: "/Positions",
        template: new sap.m.ObjectListItem({
          title: '{id}'
        })
      }
    });
    
    var page = new sap.m.Page({
      showHeader: false,
      content: [list]
    });
    var app = new sap.m.App({
      pages: [page]
    }).placeAt("content");
    
    sap.ui.getCore().setModel(model);
  </script>
</head>
<body id="content" class="sapUiBody">
</body>
</html>
Output

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

Dismiss x
public
Bin info
TimoStapro
0viewers