title: Bind Aggregation Relative to Parent Selection
body: <p>I have an XML view and a controller.</p>
  
  <p>My model data is bound to the <code>sap.m.Table</code>. The problem is that I have to bind the <code>"items"</code> relative to a certain array element of my model.</p>
  
  <p>These are my model data:</p>
  
  <pre class="lang-json prettyprint-override"><code>[{
    "type": "01",
    "items": [{
      "date": "20150720",
      "amount": 53.20,
      "paytype": "Cash"
    }, {
      "date": "20150720",
      "amount": 23.20,
      "paytype": "Cash"
    }]
  }, {
    "type": "02",
    "items": [{
      "date": "20150720",
      "amount": 515.6,
      "paytype": "Credit Card"
    }, {
      "date": "20150720",
      "amount": 3,
      "paytype": "Something else"
    }]
  }]
  </code></pre>
  
  <p>I want to bind my table to the <code>"items"</code> property according to a selection change of my <code>Select</code> control which has fields like "type" property bound.</p>
  
  <p>How can I write the path of the items property of my table? <code>"data&gt;/items/"</code> didn't work.</p>
  
  <p>I thought about solution to bind the path value to an external model
  <code>pathModel</code> and to update its property according to a selection change of the select object like that:</p>
  
  <p>My view:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Table
    id="dataTable"
    items="{path&gt;pathUrl}"
  &gt;
  </code></pre>
  
  <p>My controller:</p>
  
  <pre class="lang-js prettyprint-override"><code>newPath = "data&gt;/"+ countPath +"/items/";
  currentView.getModel("path").setProperty("/pathUrl", newPath);
  </code></pre>
  
  <p>But it's not working either.</p>