title: OData binding with $expand
body: <p>We have to bind a OData url to UI5's ODataModel</p>
  
  <p><a href="https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZCD204_EPM_DEMO_SRV/BusinessPartners" rel="nofollow noreferrer">https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZCD204_EPM_DEMO_SRV/BusinessPartners</a>('0100000000')/SalesOrders/?$expand=SalesOrderItems</p>
  
  <p>We are able to bind root level items that belong to each SalesOrder. However, we are running into problem in case of binding data from <code>SalesOrderItems</code> which are a child to <code>SalesOrder</code>. </p>
  
  <p>We are not able to bind SalesOrderItems' fields to any of our objects. We tried using <code>{SalesOrderItems/results/QuantityUnit}</code>, <code>{SalesOrderItems/QuantityUnit}</code> without much luck. </p>
  
  <p>Can you please suggest any alternatives?</p>
  
  <p>There is 1..m cardinality between SalesOrder and SalesOrderItem</p>
  
  <pre><code>// model of oData
  
  var model = sap.ui.model.odata.ODataModel("proxy/https/sapes1.sapdevcenter.com/sap/opu/odata/sap/ZCD204_EPM_DEMO_SRV/",true,'username','password');
  //app is defined in index.html here we are setting model to the app.
  
  App.setModel(model);
  
  // create a table
  
  var pastOrder_S3= new sap.m.Table("PastOrder_S3",{
              inset:true,
              //visibleRowCount: 2,
              firstVisibleRow: 2,
              fixedColumnCount: 2,
              columns:[
                       new sap.m.Column({
                           header:new sap.m.Label("item").setText("Items"),
                           hAlign:"Left",
                           width:"20px",
                           demandPopin:true,
                           popinDisplay:"Block",
                           minScreenWidth: sap.m.ScreenSize.Medium
                       }),
                       new sap.m.Column({
                           header:new sap.m.Label("orderdetail").setText("OrderDetails"),
                           hAlign:"Left",
                           width:"200px",
                           demandPopin:true,
                           popinDisplay:"Block",
                           minScreenWidth: sap.m.ScreenSize.Medium
                       })
  });
  
  //create a template to bind into the table using model.
  
  var oTemplate_S3= new sap.m.ColumnListItem({
          type: sap.m.ListType.Active,
          cells: [
  
          new sap.m.Text({
          text:"{ProductName} \n {ProductID}"
                  }),    
  
             new sap.m.Text({
                  text:"OrderId: {SalesOrderID} \n {DeliveryDate} \n {TotalSum}{Currency}"
                  })             
               ]
      });
  </code></pre>
  
  <p>     </p>
  
  <pre><code>// bind into the table.
  `pastOrder_S3.bindAggregation("items","BusinessPartners('BusinessPartnerId')/SalesOrders/?$expand=SalesOrderItems",oTemplate_S3);`
  </code></pre>
  
  <p>Here we have a child property named 'SalesOrderItems' we need to read the properties inside the salesorderitems.</p>