Select to view content in your preferred language

Major changes in Web Map may break the experience

207
6
a week ago
Shixian_Sheng
New Contributor II

Whenever a big change is made to the Web Map, let's say the current dataset gets deleted, and a new one gets added. The experience builder components, let's say query widget, filter widget, won't just automatically switch to the new one. 

When a situation like this occurs, the team I'm in would manually reconfigure these widgets, which can be time consuming. Are there better ways to tackle this problem?

6 Replies
NicoleJohnson
New Contributor III

If you're using Enterprise, you can use ArcGIS Assistant to point your web map to the new data. With the web map changed, you won't need to change anything on the Experience Builder side (UNLESS something about your data/schema changed and any aspect of the map or widget setup no longer works with the new data--in that case, you'll need to reconfigure the widget, and I wouldn't bother with using ArcGIS Assistant for that unless there's someone on your team very confident with JSON). Note that you should read the guide before doing anything, practice with some dummy data and maps, etc.

There's also an ArcGIS Online Assistant (I haven't used it, but I imagine it functions similarly).

 

0 Kudos
GIS_Weasel
New Contributor III

The only workflow I've found that minimises this issue is to overwrite existing content in-place.

Unfortunately, this is not an option if you're using Scene Layers.

0 Kudos
TimWestern
Occasional Contributor

This also feels true for settings in custom widgets.  You might set it up with an Enumeration to track all the settings so you know which useDataSource is which for later on, but if you change one in the middle, the simpler approaches result in having to re-configure all the data source settings for most of the rest if not all.

I've had success in trying to hard code a 'none' data source as a place holder to get around that, to an extent, but I'm not confident this is the best way to handle that.  (If its setup in a way that you know which index is which and leave some none data source, its easier to replace it in the array without everything moving down the array)

0 Kudos
Shixian_Sheng
New Contributor II

Hi TimWestern! You mentioned you had succes in trying to hard code a 'none' data source. Would you mind elaborate more than this? For example, what do you mean by hard code a none data source? For filter and query widgets, isn't 'None' the default data source, why hard code it.

0 Kudos
TimWestern
Occasional Contributor

I can't find the sample of code I used to do that But I think it had something to do with creating dummy useDataSource types with None in several of the text fields.   by doing that by default, or after one was removed from a specific location, I could then update that one location in the array on its own.

I wish I could find the example I found weeks ago to demonstrate the idea though.

Note, it has 1 draw back, you'll need to check the data source id's before using them for queries and such.

0 Kudos
Bhiseganesh5555
New Contributor

This is best solution in your maps detali web provide in very good experience me.

0 Kudos