In the AGOL April update, a new feature was added:
A web experience can now communicate with an embedded app by passing URL parameters to control what appears in the embedded app at runtime. Use a single URL editor to form dynamic URLs from connected data attributes or app URL parameters, or add static URLs directly.
This series contains three articles, which will work you through three different cases on how the new feature works, allowing you to further utilize the Embed widget to accommodate different scenarios.
URL parameters are commonly used in web applications. If you embed some content inside an ExB app, how can I pass the parameter inside this embedded content to achieve the communication from the ExB app to embedded content?
To prepare:
https://esridevbeijing.maps.arcgis.com/apps/webappviewer/index.html?id=b66a1c2f8d5a49ecacbf0b8fb6371df2 https://lcpsfhs.maps.arcgis.com/apps/opsdashboard/index.html#/0ef4d2226513499a8254b1f2d3102317
WAB: ?extent= ?center= ?scale= ?query=
Ops Dashboard: ?state=
Note: Be aware of the differences between URL parameter usage rules for each app.
After all the content being configured, save the app, and run preview mode. Note that preview will not inherit your builder URL parameter for now so you would need to add them on later.
In the previewed app, all URLs will be removed now, so the added URL parameters for the embedded content shall be not affected, instead, it will show the content as it is without any URL parameters.
1. Embed Case1_How to use the app URL1_WAB
End-user cases:
...(can change per user's request and then show the different cities here)
2. Embed Case1_How to use the app URL2_embedDashboard
End-user cases:
https://experience.arcgis.com/experience/9b69e6e7a6984952944d0410ac9b1872/?state=Michigan
https://experience.arcgis.com/experience/9b69e6e7a6984952944d0410ac9b1872/?state=California
- A new filter URL parameter (?data_filter=?dsId1:filter, dsId2:filter)
- How to use it in the Embed widget
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.