Problem with Repeats after updating to 3.6.137 (Connect)

310
9
11-20-2019 12:51 PM
AnnaSafonova1
New Contributor II

Hi,

has the repeat's behavior been modified in the latest update of the Connect? - "edit and resend" for submitted surveys displays all records in the repeats, but doesn't allow for either editing or deletion (the delete btn is missing from the repeats); it does allow to add new records though. 

"esri:parameters" column is set to "query allowUpdates=True" for all repeats in the survey.

We didn't have that problem in the previous versions.

Thank you.

Tags (1)
0 Kudos
9 Replies
Philip-Wilson
Esri Notable Contributor

Hi Anna,

Can you please provide a copy of the xlsx form so we can take a closer look? Also share any screenshots of missing buttons and the device/make/model/OS you are seeing this on? There should be no changes in 3.6, compared to 3.5, in regards to repeats and adding, updating or deleting related records.

Regards,

Phil.

0 Kudos
Philip-Wilson
Esri Notable Contributor

Hi Anna,

I just tested your survey in Connect and field app and it is working as expected with the way you have configured your xlsx file.

Currently, the deleting of repeat records when editing a survey via Sent box (Edit and resend) or via the Inbox is not supported. This has never been supported and would require using the parameter allowDeletes which has not been implemented in the bind::esri::parameters column for begin repeat question types.

This is the reason you do not see the "trash can" delete icon when you are editing survey that has repeats. You will only see the 'trash can" when you are completing a new Collect, editing a new survey from Drafts, editing a copy of a survey from Sent folder, basically all of these are actions before the survey has been sent to the feature service, so deletions are allowed. This behaviour has not changed across versions, however previously the "trash can" icon may have been displayed even though it did nothing as the delete would not occur on the server.

As for updating repeat records, with "query allowUpdates=True" I am able to update existing repeat records in your survey, change text, select one/multiple values, change the geometry of shapes in the repeats. This can be done when editing a Sent record or using the Inbox provided that "query allowUpdates=True" has been set on the begin repeat. The only action that is not supported via Sent and Inbox is editing existing images. It is not possible to delete or update an image in a repeat record, as currently this is not supported, only new images can be added to a new repeat record added.

Regards,

Phil.

0 Kudos
Philip-Wilson
Esri Notable Contributor

Hi Anna,

The ability to link web maps and other "Standard map types" to your survey is part of the new Linked Content option in Connect. Standard map types are still beta in the latest release, so you can find out more information in the documentation over on the Early Adopter Community (EAC) here: https://earlyadopter.esri.com/project/article/item.html?cap=e69ef91f45744b98882c651f7b518eb7&arttype...

Regards,

Phil.

0 Kudos
DougBrowning
MVP Notable Contributor

Do we still need to Add allowUpdates=true to ALL repeats in bind::esri:parameters column in 3.6?

Thanks

0 Kudos
IsmaelChivite
Esri Notable Contributor

Hi Doug. No changes. You must add allowUpdates=true to the bind::esri:parameters column if you want users to be able to update existing related records.  Details at: Prepare for editing existing survey data—Survey123 for ArcGIS | Documentation 

DougBrowning
MVP Notable Contributor

Thanks.  You add it to the begin repeat line - correct?

0 Kudos
IsmaelChivite
Esri Notable Contributor

Yes. You got it. 

typenamelabelbind::esri:parameters
dateTimesurveyDateSurvey Date
textplot_idPlot ID
begin repeatspecies_foundSpecies Foundquery allowUpdates=true
textspeciesScientific Name
integercoverCover
end repeat
0 Kudos
DougBrowning
MVP Notable Contributor

Oh you need the word query in there also?

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Doug,

You need the parameter query (to get all records) or query=<DEFINITION QUERY> (to select certain records to load the records into the repeat section.

0 Kudos