title: Binding Item data to the Detail View
body: <p>This is my View Page</p>
  
  <p><strong>SecondView.view.xml</strong></p>
  
  <pre><code>&lt;mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:f="sap.ui.layout.form" xmlns:anubhav="myfiori.controls" xmlns:html="http://www.w3.org/1999/xhtml" controllerName="myfiori.controller.SecondView"&gt;
  &lt;Page title="My Second View" showNavButton="true" navButtonPress="onBack" content="{/ZPO_HEADERSet}"&gt;
      &lt;content&gt;
  
          &lt;Table id="lineItemsList" width="auto" items="{toItems}"&gt;
              &lt;headerToolbar&gt;
                  &lt;Toolbar id="lineItemsToolbar"&gt;
                      &lt;Title id="lineItemsHeader" /&gt;
                  &lt;/Toolbar&gt;
              &lt;/headerToolbar&gt;
              &lt;columns&gt;
                  &lt;Column&gt;
                      &lt;Text text="Doc No" /&gt;
                  &lt;/Column&gt;
                  &lt;Column &gt;
                      &lt;Text text="Material No"/&gt;
                  &lt;/Column&gt;
              &lt;/columns&gt;
              &lt;items&gt;
              &lt;ColumnListItem &gt;
                      &lt;cells&gt;
                          &lt;Text text="{Ebelp}"/&gt;
                          &lt;Text text="{Matnr}"/&gt;
                      &lt;/cells&gt;
                  &lt;/ColumnListItem&gt;
              &lt;/items&gt;
          &lt;/Table&gt;
      &lt;/content&gt;
  
  &lt;/Page&gt;
  </code></pre>
  
  <p></p>
  
  <p>My <strong>Item data</strong> path is <code>"ZPO_HEADERSet('1100000001’)"</code>.so that I will get all the Items for the particular Header Id.</p>
  
  <p>My controller</p>
  
  <p><strong>SecondView.controller.js</strong></p>
  
  <pre><code> sPath = "/ZPO_HEADERSet('" + Id + "')";
   this.getView().bindElement(sPath);
  </code></pre>
  
  <p>On pressing the Master Row, I should get it's items. But I'm getting all Item rows of every Header Id as shown in below screenshot.</p>
  
  <p><a href="https://i.stack.imgur.com/mXBC7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mXBC7.png" alt="enter image description here"></a></p>