title: How to correctly bind a form element to newly created oData Entity in SAPUI5?
body: <p>I have implemented an oData Service into my SAPUI5 application.</p>
  
  <p>On pressing a button the oData Model <code>createEntry()</code> is triggered which returns a Context with the newly created entity.</p>
  
  <p>As per the SAPUI5 documentation - <a href="https://openui5.hana.ondemand.com/#/topic/6c47b2b39db9404582994070ec3d57a2.html#loio6c47b2b39db9404582994070ec3d57a2" rel="nofollow noreferrer">Documentation (Creating Entities)</a> it should be enough to call <code>setBindingContext(oContext)</code> on my form to bind my new entity to my form.</p>
  
  <p>But no matter how I try, I can't seem to get the binding working. The input fields remain empty (although the entity has set properties).</p>
  
  <p>Do I need to keep a special syntax in mind when trying to do this kind of binding with an oData Model?</p>
  
  <p>My form:</p>
  
  <pre><code>&lt;f:SimpleForm id="form" editable="true" layout="ResponsiveGridLayout" title="Address" labelSpanXL="3" labelSpanL="3" labelSpanM="3"
      labelSpanS="12" adjustLabelSpan="false" emptySpanXL="4" emptySpanL="4" emptySpanM="4" emptySpanS="0" columnsXL="1" columnsL="1" columnsM="1"
      singleContainerFullSize="false"&gt;
      &lt;f:content&gt;
          &lt;Label text="Recno"/&gt;
          &lt;sf:SmartField id="recno" value="{recno}"/&gt;
      &lt;/f:content&gt;
  &lt;/f:SimpleForm&gt;
  </code></pre>
  
  <p>My method that opens my dialog containing the form:</p>
  
  <pre><code>openCreateDialog: function() {
    this.getOwnerComponent().getModel("oDataModel").refreshSecurityToken(function() {
      var oContext = this.getOwnerComponent().getModel("oDataModel").createEntry("/head", {
        properties: {
          recno: "100"
        }
      });
      this.byId("form").setBindingContext(oContext);
    }.bind(this), function(data) {
      console.log(data);
    }, true);
    this.byId("CreateHeadDialog").open();
  },
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I already tried {oDataModel>xxx} but this doesnt work. 
  On the other hand, after I made my oDataModel a nameless model it seems to work fine. The smartfield correctly shows the right value, but changes I make in the UI are not applied to the property my smartfield is bound to.</p>
  
  <p>When I submit pending changes of my oDataModel, all properties of my entity remain undefined, although I filled the smartfields with correct values.</p>