title: How to set value in a sap.m.Datepicker in a row same as in above row?
body: <p>I have a table in which one of the Column has sap.m.Datepicker element. There is a checkbox which says "same start date for all" and a plus button to add a row. So when plus button is clicked i am pushing a empty row in the table model, but if check box is ticked then start date should be same in the new row as in previous row. 
  But if i am unchecking the checkbox, still start date in a new row is setting the same.
  See the code below:</p>
  
  <pre><code>var datepickered =  new sap.m.DatePicker({
          value: {
              path:"{Start_Date}",
              type: new sap.ui.model.type.Date({
                  pattern:"MMM dd yy",
                  source:{pattern:"MM/dd/yy"}
              })
          },});
  </code></pre>
  
  <p>Now i am setting the date in new row.</p>
  
  <pre><code>var modelData = sap.ui.getCore().byId("tableid").getModel().getData();
  var value = sap.ui.getCore().byId("tableid").getItems()[0].getCells()[3];
  modelData.push({Start_Date:value.getValue()});
  sap.ui.getCore().byId("tableid").setModel(modelData);
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/oaaSX.png" rel="nofollow">sanpshot of the rows</a></p>