wsharba / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 1 forks source link

now() is evaluated only once per survey #1028

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create form with at least 2 fields with value calculated using now()
2. fill and submit form
3. every instance of field where now() was used has the same time

What is the expected output? What do you see instead?
I expected each field to have assigned distinct, correct value of the now() 
function.

What version of the product are you using? On what operating system?
ODK Collect 1.4.3, Android 2.3

Please provide any additional information below.
Test forms attached: xls, xml and example survey.
I tried to use workarounds like once(now()) or defer evaluation using 
construction if( boolean-from-string(${bcPunkt1}), format-date-time(now(), 
'%H:%M:%S'), format-date-time(now(), '%H:%M:%S'))

Original issue reported on code.google.com by zbigniew...@gmail.com on 28 Jun 2014 at 3:33

Attachments: