Select to view content in your preferred language

Exporting photos from survey123 horizontally

91
2
Tuesday
ThatGISGuy
New Contributor

Hello all,

i have a very simple survey123 form to capture photos in a repeat function.
I have photos description with them as well. All i want to do is to export them side by side rather than vertically.
Can someone provide me with working solution.

 

I tried using this one, but it doesn't work

 

${#Information}

${Photo | size:200:0 | appearance:"fit"}

${Photo_Name}

${/Information}

required output.jpgsurvey123 xlsx.jpg

0 Kudos
2 Replies
Neal_t_k
Frequent Contributor

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

Neal_t_k_0-1760534311448.png

I would try this first, 

${#Information}${Photo | size:200:0 | appearance:"fit"} ${/}

If that works to get them horizontal, I would then experiment with getting the photo name underneath.

0 Kudos
abureaux
MVP Frequent Contributor

All i want to do is to export them side by side rather than vertically.

Exporting into columns in S123 is annoying. I do have a process that works fairly well though, but it's a little involved. 

Here is the S123 stuff:

typenamelabelcalculationbind::type
begin repeatoddeven_rptoddeven_rpt  
calculateoddeven_index position(..)decimal
calculateoddeven_math (round(${oddeven_index} div 2,0)+(${oddeven_index} div 2))-${oddeven_index}decimal
calculateoddeven_output if(${oddeven_math}=0,'B','A') 
imageoddeven_imageTake a Picture  
end repeat    

 

You would look at ${oddeven_output} for even items (A) and odd items (B). Use this in your feature report.

In the Feature Report,

  1. Add a table with 2 columns and 1 row.
  2. Inside each cell of that table, place a table with 1 column and 2 rows*.
  3. Add the code below to each nested table.

Note, I stole this from a college's unfinished Feature Report. I don't remember where my original example went to. But this gives you the general idea of the layout. 

${#pic_rpt}${if oddeven_output==”A”}${pic_img | size:0:0:200:200}

Photo – ${pic_des}${/}

${/}

${#pic_rpt}${if oddeven_output==”B”}${pic_img | size:0:0:200:200}

Photo – ${pic_des}${/}

${/}

 

* If my shoddy memory serves, the repeat end marker, ${/}, is supposed to be in the second cell of the nested table so that each photo and associated description get their own cell.

0 Kudos