Hi,
I'm a practicum student looking at ways to visualize snow, soils, geology, water data using elevations.
Using the repeat function for my layer data, and need to "pull data" from each elev_layer field from my 'snowlayers' repeat into my main form to visualize on my 3D by layer. Also, I'd want to use the phot per-layer, but that's after I get this step done.
Anyway, I can use Sum(), Count(), Max-Min, Once etc.
But indexed-repeat(${elev_layer}, ${snowlayers}, 1) only gives me a -1, -2 for each index 1, 2, for repeat I'm trying to access elev_layer integer data from.
Tried in both the repeat and outside repeat to see if that gives a different value, but it's the same.
Is there a step I'm missing?
Solved! Go to Solution.
Hi @NKneisel the strange text that's being displayed for the note question is what I'm seeing when opening this survey in a pre-3.12 version of the field app. Here's how it looks in 3.10 versus 3.12:
Also the menu option to update Connect no longer appears in later versions, and the main menu now looks different to what's shown in your screenshot, which suggests you're still running an older version?
Just to double-check, could you please confirm the version number in Connect and field app on the About screen? Latest build numbers are field app 3.12.277 and Connect 3.12.232.
Best, Jim
Hi @NKneisel if possible, could you please share your XLSForm so I can take a closer look? From your screenshot it looks like the elev_layer1a calculation contains invalid syntax, i.e. ${snowlayers}, 1)
Thanks, Jim
Hey Jim,
I'm able to get the text value for 'lyr_dpth' for the layer I want, when I use selected-at(${lyr_dpth}, position(..)-1), after I use a repeat_count of: count-selected(${lyr_dpth})
But my elementary understanding fails on getting an indexed repeat integer value for the same layer.
However, when I try for an Integer value, I get a -1, for an index of '1'; or --1, for index -1.
For an integer value, there must be a index aspect I am missing for the indexed-repeat to call the value of lyr_depth index 1, 2, 3, 4, 5 etc, to visualize in 3D.
Currently, I'm just jenking the repeat structure, turning it into a feature layer by putting the same geo-point inside the repeat, and defaulting the xy to the original. This has benefits, but it also has some disadvantages for displaying layered data in 3D.
Hi @NKneisel thanks for sharing your XLSForm and the additional info. Looks like an interesting project! I'm still not 100% on the objectives for the form so my apologies if I've missed something, but here are a few suggestions that hopefully will assist you with your form design. I've attached an XSLX file demonstrating some of these calculations.
For more info on repeats, please see this blog post and documentation. For more info on functions, please see Formulas.
Hope this is useful. Best, Jim
Appreciate the feedback!
Yes, sadly I previously tried the options you suggested with no luck.
I am trying to utilize the integer for the 'lyr_dpth' field both inside and outside the repeat structure. This is to auto-fill a layer depth inside the repeat and to use the layer depths for 3D layer symbology with photos of each layer outside the repeat (3D scenes don’t symbolize repeat tables unless I ‘jenk-them’ into feature classes using illegal auto-filled hidden geo-points).
Tried your version, and the indexed repeat value still displays -1, for 'lyr_dpth' both on the published and unpublished side of Survey 123 Connect for the ‘lyr_dpth’ integer I was trying to get.
All I know about indexed-repeats, is if it can’t find the index, it returns a -1. Setting the layer_count seems to return a value. Usually, the repeat structure is as you said, so index 1, gives you the first value, 2 the second… Unfortunately, my index of 1 gives -1, 2 gives -2.
Maybe I am missing a repeat count somewhere for my indexed repeat to call from?
Pulling an integer elevation would be very useful in Geology, to Soils, Water, Ice, and Snow core visualization in 3D with photo's per layer.
I'm just hoping to get a non -1 value to be returned for an indexed repeat. My rookie skills can return a value in excel, but no success in Survey 123. I must be missing one very valuable step?
Nathan
Attached both of our files.
Hi Nathan, apologies I should've confirmed this earlier but which versions of the Survey123 field app and Connect are you using? Support for the indexed-repeat() and position(..) functions was introduced at 3.12. You can download the latest from app stores and the Survey123 Resources page. Please let me know what version you're on and we can take it from there!
Best, Jim
Hi Jim,
Yes, I've been using the latest.
Downloaded the latest to triple-check.
Were you able to get the layer depth integer using this method of a note for position(..)?
I tried switching the integer for a calculate, but that did not work either.
Did this work on your end?
Still getting the same result:
Hi @NKneisel the strange text that's being displayed for the note question is what I'm seeing when opening this survey in a pre-3.12 version of the field app. Here's how it looks in 3.10 versus 3.12:
Also the menu option to update Connect no longer appears in later versions, and the main menu now looks different to what's shown in your screenshot, which suggests you're still running an older version?
Just to double-check, could you please confirm the version number in Connect and field app on the About screen? Latest build numbers are field app 3.12.277 and Connect 3.12.232.
Best, Jim
OMG, no way.
I downloaded and re-installed it, but maybe I'm not using the latest form or maybe I have to completely uninstall and re-install.
Regardless, It's so great to have a community to troubleshoot these small errors while we're all working remotely! Getting this working will increase the functionality immensely!
Thanks, Jim for your patience!
Hi Nathan, good to hear we're getting there!
Note that a few releases back our product name changed from "Survey123 for ArcGIS" to "ArcGIS Survey123" and the name of the install directory was updated accordingly, so it is possible to have an older version and a newer version installed on a desktop machine at the same time. As an example, the old and new install directories for Connect on Windows are as follows:
More info on installation here.
Note that from 3.12 Survey123 supports 'over the top' installations (i.e. without having to uninstall the previous version first). For older versions you must uninstall and then reinstall.
Best, Jim