Select to view content in your preferred language

Parent field referenced in repeat not updating unless go through all repeats

116
2
a week ago
j-bromp
Frequent Contributor

Hi there, just wondering if there is a quick fix to this. In my survey i have a field in a repeat that just takes the value of a field outside of the repeat. E.g. i have a field called ${name1} in the parent part of the survey. then in the repeat i have a field which has a calculation of ${name2}.

if i submit the survey, then go back and edit ${name1}, then only the first repeat gets the updated name. the others only update when i cycle through them using the arrows.

I have calculationMode=always set for ${name2}.

not the end of the world but would be great to fix as i would have thought all repeats should update if calculationMode=always

Cheers

0 Kudos
2 Replies
DeonLengton
Esri Contributor

Hi

This is a known "limitation". The calculationMode only becomes active once you have a repeat record open in the repeat - it doesnt automatically recalculate all the repeat records.

abureaux
MVP Frequent Contributor

This is indeed a known and massive limitation. I hope we get a timeline for major features later this year when testing starts on the new S123 app, and I really hope this gets addressed.

There is already an Idea for this feature, but I can't find it right now.

I'd even settle for a manual or automatic script that fires either when the user presses a button (e.g., "Update all repeats" button), or the survey sends, assuming the concern is "performance".