Select to view content in your preferred language

Attachements not displayed on survey123 report

1095
5
Jump to solution
11-22-2023 05:57 AM
MusandiwaSadiki
Occasional Contributor

I have appended old survey results to the new survey results; the schema is exactly the same; however, when generating reports from the old results, attachments are not displayed, but they are there. How do I resolve this?

I have attchached

1.How results are displayed for both old and new results. Old not displaying which i guees could be the issue.

2. The icon shown on the report instead of photos.

Kindly assit.

Musandiwa Sadiki

 

0 Kudos
2 Solutions

Accepted Solutions
ZhifangWang
Esri Regular Contributor

Hi @MusandiwaSadiki ,

That makes sense.

For the report syntax,

  • ${#$attachment}${$file}${/} - The start tag (with `#` sign) and end tag (`${/}`) represent the iteration of all attachment files of the current feature. Attachment that other than image type (e.g. audio, file) will also be processed. `${$file}` represents each attachment in the iterating process.
  • ${#image1}${$file}${/} - The start tag and end tag represent the iteration of all images of the image question `image1`, which are attachments of the current feature but with the keywords `image1` (same with the question name) . `${$file}` represents each image attachment in the iterating process.
  • If you are sure that there is only one image in the image question or feature's attachments, you can use ${image1} (question name) or ${$attachment} to represent the only file.

So in ${attached item | size:250:0}, "attachment item" is invalid syntax.

To print the image in its original size, you can just use the syntax without specifying its size: ${$file} in an iteration or ${image1} for the specific question. Please note that the original image size probably exceeds the width of the document, that's why we usually use the "size:<width>:<height>" method to control its size.

View solution in original post

0 Kudos
MusandiwaSadiki
Occasional Contributor
Thank you very much, it has worked so perfect, have even generated survey reports.
 
 
 
 
 
  
 
 
 
 

View solution in original post

0 Kudos
5 Replies
ZhifangWang
Esri Regular Contributor

Hi @MusandiwaSadiki ,

The form view on the Data page of the Survey123 website and the Survey123 report service can display attachments for an image question as long as there is a `keyword` property of the attachment written with the same image question name. Otherwise, we cannot know which question an attachment belongs to.

From your description, https://support.esri.com/en-us/knowledge-base/how-to-update-the-attachment-keywords-for-existing-arc... might help you add the keyword property for attachments in old records.

MusandiwaSadiki
Occasional Contributor

Thank you very for the response, the syntax that has worked is the one detailed below. 

${#$attachment}

 
 
 

${$file}

${/}

${#attachments}

${attached item | size:250:0}

${/attachments}

 

${attached item | size:250:0} failed, when I removed it, however the attachments are displayed partially. Which syntax above can I use to display the original size of the photos?

 

0 Kudos
ZhifangWang
Esri Regular Contributor

Hi @MusandiwaSadiki ,

That makes sense.

For the report syntax,

  • ${#$attachment}${$file}${/} - The start tag (with `#` sign) and end tag (`${/}`) represent the iteration of all attachment files of the current feature. Attachment that other than image type (e.g. audio, file) will also be processed. `${$file}` represents each attachment in the iterating process.
  • ${#image1}${$file}${/} - The start tag and end tag represent the iteration of all images of the image question `image1`, which are attachments of the current feature but with the keywords `image1` (same with the question name) . `${$file}` represents each image attachment in the iterating process.
  • If you are sure that there is only one image in the image question or feature's attachments, you can use ${image1} (question name) or ${$attachment} to represent the only file.

So in ${attached item | size:250:0}, "attachment item" is invalid syntax.

To print the image in its original size, you can just use the syntax without specifying its size: ${$file} in an iteration or ${image1} for the specific question. Please note that the original image size probably exceeds the width of the document, that's why we usually use the "size:<width>:<height>" method to control its size.

0 Kudos
MusandiwaSadiki
Occasional Contributor
Thank you very much, it has worked so perfect, have even generated survey reports.
 
 
 
 
 
  
 
 
 
 
0 Kudos
MusandiwaSadiki
Occasional Contributor

Thank you very much, it has worked so perfect, have even generated survey reports.

0 Kudos