datetime - Powerapps - get stuck with UpdateContext -


i trying build powerapp log setup times of our machines our fitters.

this app looks like:

main page

there buttons named "uhrzeit". pressing these write current date , time date/time fields. using following code:

updatecontext({total8:(text( now(); "[$-de-de]dd/mm/yyyy hh:mm:ss" ))}) 

the date/time field named total8.

the code working after saving form , opening new record old data still available in fields. clicking on button "zeiten zurücksetzen" can "delete" old data.

updatecontext({total8:""}) 

problem: when open 1 of older records old data not available in form. there value of last record. in common data service records saved values correct.

as example, saving record:

record_1

when open new record, values of record 1 still available. should not case if app worked properly.

for information: if enter date/time without tapping button, saving record , opening new record don't have problem. think "updatecontext" code not code should use here.

can me solve problem?

i don't think there's problem using contexts in way -- remember context variable. isn't automatically linked datasource in special way - if set equal now(), it's going keep value until different.

when view old record, need data cds , update contexts match cds data. make sense?


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -