title: SAPUI5 - complex model binding
body: <p>I have this json model:</p>
  
  <p><strong>model/data.json</strong></p>
  
  <pre><code>{
      "orders" : [
          {
              "header" : { "id" : "00001", "description" : "This is the first order" },
              "items" : [
                  { "name" : "Red Book","id" : "XXYYZZ" },
                  { "name" : "Yellow Book", "id" : "AACCXX" },
                  { "name" : "Black Book", "id" : "UUEEAA" },
              ]
          },
          {
              // another order with header + items
          },
  
          .....
      ]
  }
  </code></pre>
  
  <p>and I'm assigning it <code>onInit</code> to the view, like this:</p>
  
  <pre><code>var model = new sap.ui.model.json.JSONModel("model/data.json");
  sap.ui.getCore().setModel(reqModel);
  </code></pre>
  
  <p>I'm trying to display a list of orders in the first view (showing the id), like this:</p>
  
  <pre><code>var list = new sap.m.List({
      id: "mainList",
      items: []
  });
  
  var items = new sap.m.ActionListItem({
      text : "{id}",
      press : [ //click handler, onclick load the order details page ]
  });
  
  list.bindItems("/orders", items);
  
  .... // add list to the page etc etc
  </code></pre>
  
  <p>What I cannot do, is connect each <strong>order</strong> to its <strong>header->id</strong>.. I tried</p>
  
  <pre><code>text: "/header/{id}"
  
  text: "{/header/id}"
  </code></pre>
  
  <p>in the items declaration, and </p>
  
  <pre><code>list.bindItems("/orders/header", items)
  </code></pre>
  
  <p>in the list binding, but none of them works.. The <strong>id</strong> value is not displayed, even though a "blank" list item is shown..</p>
  
  <p>Any idea? What am I doing wrong?</p>
  
  <p>Thank you </p>