Help with query URL parameters in Appbuilder

499
1
Jump to solution
02-01-2023 01:24 PM
swhitcombMCC
New Contributor III

I am trying to set up a custom URL using URL parameters in Appbuilder. I want the map to center and zoom on particular point that has a given value for the Accession field.

Using the Sharing widget, I got this custom URL: https://mesacc.maps.arcgis.com/apps/instant/basic/index.html?appid=654001f435f4486daa23196867b76673&...

You can see it's focused on a feature with the Accession value of 2017-1109.

I have tried to follow the instructions here to set up the correct parameters, but it fails every time. How do I set it up so the URL will center and zoom on this particular feature?

I will be linking from a database using a formula field that fills in the unique accession number, so querying by ObjectId or a similar ID field won't work.

0 Kudos
1 Solution

Accepted Solutions
MattiasEkström
Occasional Contributor III

Your custom URL points to a basic instant app and not a web appbuilder app. It use an URL parameter called 'selectedFeature' wich is not a supported URL-parameter for Web AppBuilder. I guess you need to look at the 'query' URL-parameter for Web AppBuilder.

https://doc.arcgis.com/en/web-appbuilder/latest/manage-apps/app-url-parameters.htm#ESRI_SECTION1_ED1...

 

View solution in original post

0 Kudos
1 Reply
MattiasEkström
Occasional Contributor III

Your custom URL points to a basic instant app and not a web appbuilder app. It use an URL parameter called 'selectedFeature' wich is not a supported URL-parameter for Web AppBuilder. I guess you need to look at the 'query' URL-parameter for Web AppBuilder.

https://doc.arcgis.com/en/web-appbuilder/latest/manage-apps/app-url-parameters.htm#ESRI_SECTION1_ED1...

 

0 Kudos