title: How to get binding context of the second model?
body: <p>My Fiori application has a view for which two models are set. The first model is set by default in <code>manifest.json</code> (OData), the second model I set in the controller.</p>
  <p>The data of the second model are displayed in <code>sap.m.TextArea</code>. If I try to get its binding context, the output is <code>undefined</code>.</p>
  <p>This is how I set second model:</p>
  <pre class="lang-js prettyprint-override"><code>onInit: function() {
    var oLocalModel = {
      Text: &quot;test&quot;
    };
    // JSONModel required from &quot;sap/ui/model/json/JSONModel&quot;
    var oModel = new JSONModel(oLocalModel);
    this.getView().setModel(oModel, &quot;localData&quot;);
  },
  </code></pre>
  <p>This is how I try to get the binding context of the TextArea:</p>
  <pre class="lang-js prettyprint-override"><code>onSendMail: function(oEvent) {
   var oLocalContext = oEvent.getSource().getBindingContext(&quot;localData&quot;); // undefined
   var oLocalContext = this.byId(&quot;zgutMailFormText&quot;).getBindingContext(&quot;localData&quot;); // undefined too 
  },
  </code></pre>
  <pre class="lang-xml prettyprint-override"><code>&lt;TextArea id=&quot;zgutMailFormText&quot; value=&quot;{localData&gt;/Text}&quot;&gt;
    &lt;layoutData&gt;
      &lt;l:GridData span=&quot;XL2 L3 M3 S8&quot; /&gt;
    &lt;/layoutData&gt;
  &lt;/TextArea&gt;
  </code></pre>