Alternatives to passing complex geoshape as URL parameter

559
4
Jump to solution
03-30-2022 10:18 AM
Jordi-Monk-Developer
New Contributor III

Hello,

We have a group-shared survey where users need to able to submit changes to both geometry (lines) and attributes of EXISTING FEATURES, so we need to prepopulate the survey with the feature values.

This is easy to do by using URL parameters. However, with very complex geometries the URL's length may exceed the limits of a GET request.

Here is what we are thinking on trying/we've already tried:

1.-  Prepopulate the survey feature class, and then open the features in COPY mode. This approach works but was discarded because it would allow User A to have access to a survey by User B, which is something that we don't want.

2.- In Connect, use a Javascript function within the survey to fetch the geometry from the relevant feature class and feed it into the geoshape field. (similar approach to the one described at https://community.esri.com/t5/arcgis-survey123-questions/can-t-pass-attributes-of-a-line-from-collec...

My questions:

- Is my assumption correct that a very complex geometry attached as a URL parameter will cause the call to the survey to fail?
- Will approach #2 above work?
- Is there any other alternative?

Thank you in advance.

0 Kudos
1 Solution

Accepted Solutions
HuubZwart
Occasional Contributor

Using the survey123 inbox option would be a good alternative here. Using query filters you can limit the survey's in a users inbox to their own features, for example. Also, you can open features from the inbox using url parameters (globalid). 

Have a look at: 

Survey123 Prepare for editing existing data 

View solution in original post

4 Replies
DougBrowning
MVP Esteemed Contributor

So are you always going to have the device online?

Jordi-Monk-Developer
New Contributor III

Yes, users will access each relevant survey coming from a web map.

0 Kudos
HuubZwart
Occasional Contributor

Using the survey123 inbox option would be a good alternative here. Using query filters you can limit the survey's in a users inbox to their own features, for example. Also, you can open features from the inbox using url parameters (globalid). 

Have a look at: 

Survey123 Prepare for editing existing data 

Jordi-Monk-Developer
New Contributor III

That fits the bill, I think. Thanks, @HuubZwart and @DougBrowning 

0 Kudos