If an indexed-repeat calculation with a type other then calculate is used, a wrong result is given in Enketo Preview and an error on deploy.
We want to use the age of the head of household (first person) to check against age of biological son/ daughter (minimum age difference = 12 years). Both persons are entered inside the repeat group
Steps to Reproduce
- See attached example 02, with type integer (or text). Import, preview and deploy (error)
IndexedRepeat 02 GR CALC.xlsx (40.5 KB)
2 See attached example 01, with type calculate. Import and preview and deploy (ok)
IndexedRepeat 01 GR INTEGER.xlsx (40.5 KB)
Behaviour should be the same, independent of question type.
For example 01,: In Preview actual repeat case referenced instead of person 01 (head). and error on deployment.
Same error at https://getodk.org/xlsform/
Behaviour in integer example (01) is the same,
- if there is no group inside the repeat
- if type is text…
If calculate type, all is fine.
We use OCHA Server and XLSForm.
Behaviour is different (ok) if the calculation is put after the repeat, see example 03
IndexedRepeat 03 GR INTEGER.xlsx (40.5 KB)
Blue is inside the repeat (still wrong).