Re-configure Filter widget in Web Application, moving to different environment.

973
2
Jump to solution
11-19-2020 02:44 PM
BrendanNeal2
New Contributor

Hi, We create our web applications using Web App Builder (dev edtiton) in our DEV ESRI enterprise environment, which is a full replication of our TEST/PROD environments, when we move the application to our TEST/PROD, to re-configure the application to work I usually only need to change all the reference URL paths for the underlining service layers and change the web map reference number in the .JSON config files for the app. This has always worked fine.

For the Filter Widget it seems a little different: JSON code for widget is below, changed URL in red, Screen grab of DEV filter Image working is attached "DEV_filterWidget.PNG", screen grab of TEST filter Image not working is attached "TEST_filterWidget.PNG"

I think it may have something to do with the "layerId": "ChartSeries_7779" reference, but do not know what this is referencing?? Assuming it might be layer Id in underlying web map, but don't know how to find what that is??

{
"taskOper": "AND",
"groupByLayer": false,
"zoomto": true,
"zoombackto": false,
"allowCustom": true,
"allowResetAll": true,
"allowTurnOffAll": true,
"filters": [
{
"layerId": "ChartSeries_7779",
"url": "https://XXXXXXXXXXXX.xxx.xxx.xx.xxx/site2/rest/services/Products/ChartSeries/ImageServer", (re-mapped URL)
"name": "Filter Chart Series By: Scale",
"filter": {
"logicalOperator": "AND",
"parts": [
{
"fieldObj": {
"name": "IMAGE_SCALE",
"label": "IMAGE_SCALE",
"dateFormat": "",
"shortType": "number",
"type": "esriFieldTypeInteger"
},
"operator": "numberOperatorIs",
"valueObj": {
"isValid": true,
"type": "unique",
"value": null
},
"interactiveObj": {
"prompt": "Product Scale is:",
"hint": "Select a Scale Value from list",
"cascade": "none"
},
"caseSensitive": false
}
],
"expr": "",
"displaySQL": ""
},
"icon": null,
"enableMapFilter": true,
"autoApplyWhenWidgetOpen": false,
"collapse": false,
"symbol": {
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriPMS",
"url": "http://XXXXXXXXXXXX.xxx.xxx.xx.xxx/portal/portalimages/Symbols/Numbers/blue01.png",
"imageData": "iVBORw0KGgoAAAANSUhEUgAAABUAAAAdCAYAAABFRCf7AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzA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gnSjFBgcc9N9IiFzpGpO0plJX0k15yjIO2IC4plOHdy/k9Z5Bwhh7xU5Tqy4jPbZcVdf8o1VpLzL+K2sA9+f3XHNqnC7dzlu/3kk/47Tk3Kyk0UyE+xGgFlJoIPfuQW466DJV7wvcz9Xs/WPer/wXfGgLIBkmmGbgF76PDBL+WQXyrHByw9GT9GyUSsUcQm+W47MRFQMUgBKHLCd+yhwyf5kUMePWIxvgELiPhmFZPBPOGR8do7PjtOL/hVWMiv0ko4ccceuuSDHznk0SP+pNYwXkwU8ziTxeCnkcc85f1Ge5/vHiOXWggn7thLOnzwI4c8etDn8qQxDAx4Apg3eqS/9L7PzlP/+Gn4KfnEHXtJhw9+5Fye1PlOH2D8GYiRDP5JyUya97tfjfuWnSWcuEt76PDBjxzyS+8Ugw/4Biw9GBh8mEAm3Ov1Y/t9SroJJ+7SHjp88COH/FLh8sHybgYGvJv7GE/PQl3yg+rvCSfu0h46fPC7LXM3MIpfsjZm41rv904STtyXaW5GEP4FFroDn/6H7wUAAAAASUVORK5CYII=",
"contentType": "image/png",
"width": 18,
"height": 18
}
},

Any help would be greatly appreciated. 

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

Hi @BrendanNeal2,

It might be worth looking at the JSON of the WebMap as this might give you a layerID. To do this you can use the ArcGIS Online Assistant and line up any fields.

You can get a copy of AGO Assistant here - https://github.com/Esri/ago-assistant - for hosting on any disconnected environment you are using.

 

Cheers,

Nic

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable

Hi @BrendanNeal2,

It might be worth looking at the JSON of the WebMap as this might give you a layerID. To do this you can use the ArcGIS Online Assistant and line up any fields.

You can get a copy of AGO Assistant here - https://github.com/Esri/ago-assistant - for hosting on any disconnected environment you are using.

 

Cheers,

Nic

0 Kudos
BrendanNeal2
New Contributor

Perfect!! Online Assistant did the trick, use it all the time, just forgot about that functionality

Thanks