Changing data source of widget

126
5
a week ago
Paco
by
Occasional Contributor

Hello all!   Does anyone know how to change the Data Source(new Feature Layer) of a widget without having to to reset all the parameters on that widget?

meaning,  we have 'Versions' of our Hosted Feature Layers,  and each time we update a version I need to choose the new Feature Layer within each widget,  and all the parameters go back to Default and I need to re-populate the parameters I need.

Is there a way to Save those widget parameters for each new updated Feature Layer?

thx!

5 Replies
chill_gis_dude
New Contributor III

I don't think this is possible... it's kind of an nonstarter for us and is definitely a headache. Widgets should be able to be copy and pasted between experiences and should be able to have their data sources swapped out without breaking. Maybe in the future. 

Paco
by
Occasional Contributor

Agreed.  if the Schema of a new Feature Layer is the same as the previous data source Schema,  it should be a simple swap.  

We have one Experience(that works quite well) that takes ALOT of re-relating and re-setting of widget parameters.  thankfully the other few Experiences we have only takes minimal swapping and updating. BUT, these parameters should translate much more simply and easily. 

ESRI?  any help or news on this?

thx

0 Kudos
jgasser
New Contributor II

I came here to post nearly the same question.  I have two instances of a road centerline layer in a web app.  I want to change all the widgets to reference and interact with the second one, but changing the data source resets all the settings. 

 

I think this may be possible with AGO Assistant and/or ArcGIS Assistant, but I don't know enough about those.  I'm going to try to figure it out and I'll post an update here if I figure it out.

jgasser
New Contributor II

Well, I thought I had figured it out.  I used the ArcGIS Assistant tool to view the JSON files for my web map and experience app.  I saved copies of each, then tried finding and replacing within the web app's JSON file.  My old road centerline layer (with widgets configured to it) was referred to as the road centerline's ID, followed by "-layer-1", and the new layer that I wanted the widgets to connect to was the same ID (because it's the same data) followed by "layer-8".  I confirmed these in the web map's JSON file.  However, finding and replacing all instances of that did not solve the problem.  The list widget showed an error, "Data is inaccessible".

I decided to just fix things manually, which included re-configuring the list widget content, tools, etc.  I believe the "Actions" still appeared to be intact, but they did not actually work; selecting a feature on the list selected the centerline, but did not pan and zoom to like it was supposed to.  I had to delete the actions and recreate them for it to work again.

Like you said, it should be a simple, painless process to switch the data sources when the schema is the same, but I was not able to get it to work through the actual ESRI software, or with the ArcGIS Assistant.  I still think it's possible with the Assistant, and I may look into it more thoroughly some day. 

Good luck!

0 Kudos
Paco
by
Occasional Contributor

Thanks for taking a look within the Assistant,  I may do the same.   Im hoping this query can get pushed or seen by ESRI staff,  as it would certainly streamline and help keep ExB relevant for larger and versioned datasets.

cheers

0 Kudos