title: SAPUI5 binding JSON model to control
body: <p>I am an ABAPer and learning <code>SAPUI5</code>. I am practising master-detail application through <code>splitApp</code> control. I have been searching for this kind of example but did not find any. so, i am writing here. Please guide me if possible. </p>
  
  <p>I am using local JSON model(entries in a file named as Products.json). I have two views <em>first.xml</em> and <em>seconds.xml</em> which are master and detail respectively.</p>
  
  <p>In first view I have a list and below is the code written in <code>onItemSelect</code> event of this list</p>
  
  <pre><code>var oSelectedItem = oEvent.getSource();
  var oContext = oSelectedItem.getBindingContext("products");
  var sPath = oContext.getPath();
  var oPrdDetails = sap.ui.xmlview("view.second").byId("prdDetails");
  oPrdDetails.bindElement({ path: sPath, model: "products" });
  
  var oListDetails = sap.ui.xmlview("view.second").byId("listDetails");
  oListDetails.bindElement({ path: sPath, model: "product2" });
  </code></pre>
  
  <p><code>Id="prdDetails"</code> is panel in second view and <code>Id="listDetails"</code> is a list in second view. My problem is these controls doesn't get updated using the above code.</p>