URL parameter (Feature parameter) Operations Dashboard zoom to - failing

2003
4
Jump to solution
01-12-2022 01:26 PM
Labels (1)
PeterMacKenzie2
Occasional Contributor II

I am trying to get a URL parameter to link to a feature (and zoom the map) in my operations dashboard when the user clicks a hyperlink.

 

Following the documentation and documentation

<scheme>://<yourURL>/apps/dashboards/<id>#param=value.

I have constructed this URL:
https://zzz/opsdashboard/#/e111b7658c374eb389998fd85f9d98aa#p2={3FD799C2-4C03-4660-AD5D-6668154D5F1C...

 

Where zzz is portal address, p2 is the parameter name (see img below) and the global id is between the curly brackets {}

Also tried above with encoding: #p2=%7B3FD799C2-4C03-4660-AD5D-6668154D5F1C%7D

 

The dashboard loads but doesn’t zoom to feature as desired

The map is not in a tab.

I am using the global id because I can't seem to create a unique field in version of portal as described here:

Add a unique constraint to a field 

Running ArcGIS for Portal 10.8.1

 

 

PeterMacKenzie2_0-1642022171218.png

 

0 Kudos
1 Solution

Accepted Solutions
PeterMacKenzie2
Occasional Contributor II

My mistake - I was looking at the wrong documentation. I needed to be looking at 10.8.x documentation which has a slightly different way of constructing URL parameters.

solution:
<scheme>://<yourPortalUrl>/apps/opsdashboard/index.html#/<id>?param=value.
not
<scheme>://<yourURL>/apps/dashboards/<id>#param=value.


documentation:
https://enterprise.arcgis.com/en/portal/10.8/use/url-parameters.htm
not
https://doc.arcgis.com/en/dashboards/create-and-share/url-parameters.htm

View solution in original post

0 Kudos
4 Replies
PeterMacKenzie2
Occasional Contributor II

update - I can get it working in AGOL but not in Portal so I'm thinking it might be a version issue here. Will post when I confirm this. 

0 Kudos
PeterMacKenzie2
Occasional Contributor II

My mistake - I was looking at the wrong documentation. I needed to be looking at 10.8.x documentation which has a slightly different way of constructing URL parameters.

solution:
<scheme>://<yourPortalUrl>/apps/opsdashboard/index.html#/<id>?param=value.
not
<scheme>://<yourURL>/apps/dashboards/<id>#param=value.


documentation:
https://enterprise.arcgis.com/en/portal/10.8/use/url-parameters.htm
not
https://doc.arcgis.com/en/dashboards/create-and-share/url-parameters.htm

0 Kudos
VanessaSimps
Occasional Contributor III

hi @PeterMacKenzie2 -

I am attempting to do this same thing (on AGO) that you had mentioned in your initial post. But, I am getting stuck. I have followed the instructions, that you linked to but I am not sure I totally understand what goes where: <scheme>://<yourURL>/apps/dashboards/<id>#param=value.

is <id> the dashboard item id? 

after #param=, is param the variable that can be renamed whatever you would like in the dashboard settings/URL paramters? Do you need to identify the feature layer ID here, or simply the field's value you are trying to have the hyperlink zoom to (in my case, a globalID to a point on the map). so, #param=<GUID>

Here is what I have tested, but am not getting any result

https://<myurl>/apps/dashboards/<dashboardID>#paramZ=<GlobalID>

where paramZ is the parameter name I created in the dashboard's settings, URL Parameters to zoom to the feature on the dashboard's map. 

Am I missing something here? Thank you in advance!

Vanessa 

0 Kudos
PeterMacKenzie2
Occasional Contributor II

My post was more do with me looking at the wrong portal version documentation and this meant there were differences in the scheme. If you are using AGOL then this is the place to look:
URL parameters—ArcGIS Dashboards | Documentation
https://doc.arcgis.com/en/dashboards/latest/create-and-share/url-parameters.htm

If it's still now working perhaps start a new thread and put in your attempted URL and the error or detail on it's fail. Feel free to tag me.

0 Kudos