Select to view content in your preferred language

nested Repeating attachments

198
5
Jump to solution
4 weeks ago
Slamon
by
Regular Contributor

I have a form (XLS attached) that uses a feature service (enterprise 11.1).  The source feature class has a related table and the related table has attachments enabled.

The related table is where the inspection information is being stored.  I'd like to be able to tie multiple images to a single inspection, but S123 won't let me have a nested repeat for the images within the repeat for the inspection.  I'm sure it's a syntax issue.

 

I've tried using the table name as the name for the nested repeat, but S123 says the table doesn't exist.  Attachment tables don't show up in rest services the same way related tables do.

 

Anyone have any thoughts on this?

0 Kudos
1 Solution

Accepted Solutions
Neal_t_k
Frequent Contributor

Two options

Preferred is to give the image question a multiline appearance.  This will allow for multiple images on a single question.

https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-photos/ba-p/897907

The second is the way you are doing it in the attached image, this is the old way, However this is still a good way if you want specific information recorded besides just the picture because you can repeat questions that are relevant to each photo.   In your attached picture you don't have a  name or label for your repeat group, which I suspect is your issue.

View solution in original post

0 Kudos
5 Replies
Neal_t_k
Frequent Contributor

Two options

Preferred is to give the image question a multiline appearance.  This will allow for multiple images on a single question.

https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-photos/ba-p/897907

The second is the way you are doing it in the attached image, this is the old way, However this is still a good way if you want specific information recorded besides just the picture because you can repeat questions that are relevant to each photo.   In your attached picture you don't have a  name or label for your repeat group, which I suspect is your issue.

0 Kudos
Slamon
by
Regular Contributor

Hi Neal,
Yeah, I left those blank to show how I was hoping to nest the attachment.  I've tried populating them with the table name or another place holder name, but when I publish, I get an error that there isn't a table with the name used in the repeat name field. 


It looks like multiline might only work with hosted datasets.  We're trying to write back to an enterprise database where the table has attachments enabled.

0 Kudos
ChristopherCounsell
MVP Frequent Contributor

Repeats are for related tables or layers.

You do NOT need a repeat for the attachments table. Survey123 media questions require attachments to be enabled on the target layer/table. 

As far as I can see, multiline appearance should work. There's no explicit mention that it is not supported for referenced feature services on the question's s123 documentation, or on the enterprise info page.

https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformmedia.htm

There is a note about size limits, so you may want ensure your images are under that.

If you have

0 Kudos
Slamon
by
Regular Contributor

Our data looks like this:

Parent table (Geometry)
- Inspection table (1:M relationship)
  - Attachments table

I tried the multiline and after capturing the 1st image, I was not given the option to add additional images as the article suggests.  

0 Kudos
Slamon
by
Regular Contributor

I took another crack at this and it works when you select multiline from the appearance dropdown, but not when you type it in.  Odd, but at least it's working.  Thanks 

0 Kudos