Is it possible to switch the data source of an existing dashboard from one hosted feature service to a different one without affecting the existing widgets? I created a hosted feature view off of a hosted feature service the dashboard uses. The only difference is that editing is not turned on the view.
You can use the "Change Data Source" button on the widget to change the data source, this may reset certain areas of the configuration to defaults though. If you truly want to ensure that only the service layer it uses is updated can use a tool like AGO Assistant to directly edit the dashboard json. Currently, each widget has one or more data sources that are represented by either item ids (for a standalone service/layer) or by the map layer id. You can update these if necessary (though there are risks that if you accidentally mess up the json, the dashboard may not function correctly).
Decade later, still need this. And basics like this. More than 3D AR/VR/AI. I use Assistant and will use it for this, but a supported workflow to update the webmap would be great to see as an ENH.
Did you ever found out? I changed all the '#####-layer-#" thinking that would do it and changed the id for just the webmap but is there anything else to change? I still am not sure what the stuff before the # means.....it would be really helpful if ESRI would just have some simple explanations with these things....
In case others are still interested in this topic, I found this INCREDIBLY helpful! I had a very complex dashboard with multiple elements that I wanted to redirect to a new WebMap and I was able to retain the integrity of all of my dashboard elements!
I simply went to this link https://ago-assistant.esri.com/ , found my dashboard that I wanted to redirect, did a web page search to locate the original WebMap ID, and replaced the ID with my new WebMap ID. (just FYI, the WebMap ID is located at the end of the URL when you are viewing your WebMap. It's the numeric code that's followed by "....webmap=")
Thanks to all who posted to help the greater GIS good!!!
https://ago-assistant.esri.com/
I realize this reply is over a year late but you can use this link to access your content and edit behind the scenes
Worked for me too, saving me considerable time. Thanks for the tip!
same thing here...i see no such option.
Shockingly, I was able to edit the JSON item ID in a dashboard and completely swap in a new map to a dashboard, with no apparent ill effects. Love it when something works the first time!!
Jay
Did you ever figure out what the number before the "#" is?
Must be staring at this too long but I'm not cluing in to this: ""Change Data Source" button on the widget to change the data source"
To which Widget are you referring? Where do I find it? I'm not seeing any widgets on my OpDash with any Change Data Source buttons.
Do these widgets refer to the earlier OpDash versions? Are they no longer to found on the latest
AGOL version?
Secondly, how do you edit the JSON with AGO Assistant. Does it require the paid version? I seem to only be able to read the JSON.
Thanks
I too had the id with dashes followed by the # and another ID. The number after the # is the ID of the feature service when it is inside the web map, which I could only find visible when I downloaded the JSON of the webmap referenced in my dashboard. I have no idea what that first part is - I am still searching.
Changing the data source worked for 4 of the panels. It did reset some areas. The other two panels I have required more work for some reason.
I did take a look at the JSON through the AGO Assistant but I was unable to find the itemId that matched my datasource id. I was seeing something like id with dashes followed by a # followed by another id. Since it was not going to be simple I used your first suggestion.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.