title: Data binding from table to dialog + update data from dialog to table SAPUI5
body: <p>I have the following function, which is a part of dialog (where data supposed to be bind with data table): </p>
  
  <pre><code>handleChangeRow : function() {
  
          var oTable = sap.ui.getCore().getElementById('WorkOrder');
  
          var oModel2 = oTable.getModel("test");
  
          //var oModel2 = oTable.getModel();
  
          console.log("oModel2 : " + oModel2);
  
          var odata = oModel2.getProperty("/workorderdata");
  
          console.log("odata : " + odata);
          var selIndex = oTable.getSelectedIndex();
          var selectedDataObject = odata[selIndex];
  
          var oDialog = new sap.ui.commons.Dialog("Dialog", {
              modal : true,
              closed : function(oControlEvent) {
                  sap.ui.getCore().getElementById('Dialog').destroy();
              }
          });
  
          oDialog.setTitle("Change Work Order");
          var oLayout = new sap.ui.commons.layout.MatrixLayout( {
              columns : 3,
              width : "100%"
          });
  
          var oTF = new sap.ui.commons.TextField("scopeITRequestCode", {
              tooltip : 'ScopeIT Request Code',
              editable : true,
              width : '200px',
              value: "{test&gt;/workorderdata/0/scopeITRequestCode}"
          });
  
          var oLabel = new sap.ui.commons.Label("lbscopeITRequestCode", {
              text : 'ScopeIT Request Code',
              labelFor : oTF
          });
  
          oLayout.createRow(oLabel, oTF);
  }
  </code></pre>
  
  <p>with <code>value: "{test&gt;/workorderdata/0/scopeITRequestCode}"</code> using <code>"test"</code> id of the model I am trying to get into model data: </p>
  
  <pre><code>success : function(data) {          
                  this.model = new sap.ui.model.json.JSONModel();
  
                  this.model.setData({
  
                      workorderdata: data
  
                  });
                  sap.ui.getCore().setModel(this.model, "test");
  }
  </code></pre>
  
  <p>which works fine, but only for single textfield. how can I change  reference <code>"test&gt;/workorderdata/0/scopeITRequestCode"</code> so changes will be dynamical, and user can change all text fields? with other words, how to bind value of selected cell of the row in table with the value of text field in dialog?  </p>