{"id":14971,"date":"2022-07-25T15:49:05","date_gmt":"2022-07-25T14:49:05","guid":{"rendered":"https:\/\/help.instantatlas.com\/dashboard-builder-agol\/?page_id=14971"},"modified":"2022-12-21T17:11:13","modified_gmt":"2022-12-21T17:11:13","slug":"dashboards-and-url-parameters","status":"publish","type":"page","link":"https:\/\/help.instantatlas.com\/dashboard-builder-agol\/dashboards-and-url-parameters\/","title":{"rendered":"Dashboards and URL parameters"},"content":{"rendered":"<p>You can add parameters to the URL of your dashboard to make it load with a particular feature and\/or indicator pre-selected.<\/p>\n<h1>Features<\/h1>\n<p>To pre-select an area add this parameter to the URL of your dashboard:<\/p>\n<p><strong>select=[<em>feature ID<\/em>]<\/strong><\/p>\n<p>Example dashboard URL:<\/p>\n<p><strong>https:\/\/dashboards.instantatlas.com\/viewer\/report?appid=abc123&amp;select=55<\/strong><\/p>\n<p>Where <strong>abc123 <\/strong>is the app ID in ArcGIS Online for this fictional dashboard. This will load the dashboard with the feature with an ID of <strong>55<\/strong> pre-selected.<\/p>\n<p>You can pre-select more than one feature by using a comma-delimited list.<\/p>\n<p>Example dashboard URL:<\/p>\n<p><strong>https:\/\/dashboards.instantatlas.com\/viewer\/report?appid=abc123&amp;select=55,56,57<\/strong><\/p>\n<p>To find the feature IDs, you can do the following:<\/p>\n<ol>\n<li>Edit your dashboard<\/li>\n<li>Click <strong>Data<\/strong> to open the data model<\/li>\n<li>In the box on right, check which field is being used to supply the feature IDs (the field next to the Key icon).<\/li>\n<li>In the box on the left, use the information icon to link to the source layer that contains this field. You can then check the ID used for any particular feature.<\/li>\n<\/ol>\n<h1>Indicators and dates<\/h1>\n<p>To pre-select an indicator and date add these parameters to the URL of your dashboard:<\/p>\n<p><strong>indicator=[<em>indicator ID<\/em>]&amp;date=[<em>date<\/em>]<\/strong><\/p>\n<p>Example dashboard URL:<\/p>\n<p><strong>https:\/\/dashboards.instantatlas.com\/viewer\/report?appid=abc123&amp;indicator=i514e6c97-9ddc-dc9a-bf7a-d2bd5219ce60&amp;date=2020<\/strong><\/p>\n<p>This will pre-select the indicator with ID of <strong>i514e6c97-9ddc-dc9a-bf7a-d2bd5219ce60<\/strong> and date of <strong>2020<\/strong>. You will notice that the indicators IDs in dashboards are dynamically-generated GUIDs. You will need to fish these out of the data file in ArcGIS Online:<\/p>\n<p><strong>https:\/\/www.arcgis.com\/sharing\/rest\/content\/items\/abc123\/info\/data.json<\/strong><\/p>\n<p>Where <strong>abc123<\/strong> is once again the app ID for this fictional dashboard in ArcGIS Online.<\/p>\n<p>If the data model of your dashboard is larger than ~100kb the data.json file will be split into several parts with a URL like this:<\/p>\n<p><strong>https:\/\/www.arcgis.com\/sharing\/rest\/content\/items\/abc123\/info\/data.json.part-1.txt<\/strong><\/p>\n<p>If the indicator you wish to open does not have time periods, you can leave the <strong>&amp;date=[<em>date<\/em>]<\/strong> out of the URL.<\/p>\n<h1>Combine parameters<\/h1>\n<p>You can combine parameters to select features and indicators in the same URL:<\/p>\n<p>Example dashboard URL:<\/p>\n<p><strong>https:\/\/dashboards.instantatlas.com\/viewer\/report?appid=abc123&amp;select=55&amp;indicator=i514e6c97-9ddc-dc9a-bf7a-d2bd5219ce60&amp;date=2020<\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can add parameters to the URL of your dashboard to make it load with a particular feature and\/or indicator pre-selected. Features To pre-select an area add this parameter to the URL of your dashboard: select=[feature ID] Example dashboard URL: https:\/\/dashboards.instantatlas.com\/viewer\/report?appid=abc123&amp;select=55 Where abc123 is the app ID in ArcGIS Online for this fictional dashboard. This &hellip; <a href=\"https:\/\/help.instantatlas.com\/dashboard-builder-agol\/dashboards-and-url-parameters\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Dashboards and URL parameters<\/span><\/a><\/p>\n","protected":false},"author":51,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-14971","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.instantatlas.com\/dashboard-builder-agol\/wp-json\/wp\/v2\/pages\/14971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.instantatlas.com\/dashboard-builder-agol\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.instantatlas.com\/dashboard-builder-agol\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.instantatlas.com\/dashboard-builder-agol\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/help.instantatlas.com\/dashboard-builder-agol\/wp-json\/wp\/v2\/comments?post=14971"}],"version-history":[{"count":0,"href":"https:\/\/help.instantatlas.com\/dashboard-builder-agol\/wp-json\/wp\/v2\/pages\/14971\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.instantatlas.com\/dashboard-builder-agol\/wp-json\/wp\/v2\/media?parent=14971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}