title: Powerapps - get stuck with UpdateContext
body: <p>I am trying to build a PowerApp to log setup times of our machines by our fitters.</p>
  
  <p>This is what my app looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/kg4LF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kg4LF.png" alt="Main Page"></a></p>
  
  <p>There are buttons named "Uhrzeit". Pressing these will write the current date and time into the Date/Time fields. I am using the following code:</p>
  
  <pre><code>UpdateContext({Total8:(Text( Now(); "[$-de-DE]dd/mm/yyyy hh:mm:ss" ))})
  </code></pre>
  
  <p>The Date/Time field is named Total8.</p>
  
  <p>The code is working well but after saving the form and opening a new record the old data is still available in the fields. By clicking on the button "Zeiten zurücksetzen" I can "delete" the old data.</p>
  
  <pre><code>UpdateContext({Total8:""})
  </code></pre>
  
  <p>Problem: When I open one of the older records the old data is not available in the form. There is only the value of the last record. In the Common Data Service where my records are saved the values are correct.</p>
  
  <p>As an example, I am saving this record:</p>
  
  <p><a href="https://i.stack.imgur.com/Ep478.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ep478.png" alt="Record_1"></a></p>
  
  <p>When I open a new record, the values of the record 1 are still available. This should not be the case if my app worked properly.</p>
  
  <p>For your Information:
  If I enter the date/time without tapping the button, saving the record and opening a new record I don't have the problem. I think the "UpdateContext" code is not the code I should use here.</p>
  
  <p>Can anyone help me solve the problem?</p>