Select to view content in your preferred language

Calculate max() and bind parameters not working

186
1
08-22-2024 11:58 AM
leahmaps
Frequent Contributor

Hi everyone,

I have a survey in connect that is used for site inspections, and repeats that note the day of inspection (this is in a repeat). I have another field that *should* be getting the maximum value from the last inspection date, but it does not run. I am wondering if anyone knows what might be the issue and how I could get that functionality working.

I used the hydrant inspect template to get this going, so I was basin the functionality off of that. Here is the fields I am using.

Typenamelabelcalculationbind::esri:parameters
datelastInspectionLast Inspection(max${AInspectDate})calculationMode=always
dateAInspectDateInspection Date  

 

Thank you for the help! (also, I would be curious if the calculation using max can be looking at two fields, and seeing which is most recent.

0 Kudos
1 Reply
abureaux
MVP Frequent Contributor

What you have should work (tested in Connect and web, assumed to work in Field App):

abureaux_0-1724427545820.pngabureaux_1-1724427567175.png

Just make sure the MAX() is outside the repeat.

0 Kudos