Deploying a web mapping application created using WebApp Builder in AGOL...I have downloaded the app from AGOL and uzipped it to access...But it is throwing me an Error as shown below...
Solved! Go to Solution.
Janaki,
The last reply I made has the config attached. You will not see attachments inside your inbox on GeoNet. You have to actually click on the message to open it and then you will see the attachment.
Hi Robert,
I am not able to get your config.json file.
Janaki,
I am not sure why as I see the attachment on my reply. I do not have access to my email right now so I can not send you the file by email.
Hi Robert,
Thank you for the update.
Just copy the entire .json code here, I will replace the old .json code with your code and will check...Hope this works well.
{
"theme": {
"name": "FoldableTheme",
"styles": ["red", "default", "black", "blue", "cyan", "green", "purple", "yellow"],
"version": "2.6",
"sharedTheme": {
"isPortalSupport": true,
"useHeader": false,
"useLogo": false
}
},
"portalUrl": "http://esrit3g.maps.arcgis.com",
"appId": "",
"authorizedCrossOriginDomains": [],
"title": "Spatial Decision Support System for Urban Construction",
"subtitle": "",
"keepAppState": true,
"logo": "http://esrit3g.maps.arcgis.com/sharing/rest/content/items/23868512670d4516a989c52b834a159c/resources...",
"geometryService": "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",
"links": [],
"widgetOnScreen": {
"widgets": [{
"uri": "themes/FoldableTheme/widgets/HeaderController/Widget",
"position": {
"left": 0,
"top": 0,
"right": 0,
"height": 40,
"relativeTo": "browser"
},
"version": "2.6",
"id": "themes_FoldableTheme_widgets_HeaderController_Widget_1",
"name": "HeaderController"
}, {
"uri": "widgets/Scalebar/Widget",
"position": {
"left": 7,
"bottom": 25,
"relativeTo": "map"
},
"version": "2.6",
"id": "widgets_Scalebar_Widget_2",
"name": "Scalebar"
}, {
"uri": "widgets/Search/Widget",
"position": {
"left": 55,
"top": 5,
"relativeTo": "map"
},
"version": "2.6",
"id": "widgets_Search_Widget_3",
"name": "Search"
}, {
"uri": "widgets/Coordinate/Widget",
"position": {
"left": 7,
"bottom": 5,
"relativeTo": "map"
},
"version": "2.6",
"id": "widgets_Coordinate_Widget_4",
"name": "Coordinate"
}, {
"position": {
"left": 55,
"top": 45,
"relativeTo": "map"
},
"placeholderIndex": 1,
"id": "_5",
"name": "Print",
"version": "2.6",
"closeable": true,
"uri": "widgets/Print/Widget",
"config": {
"serviceURL": "https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%...",
"defaultTitle": "Spatial Decision Support System for Urban Construction",
"defaultAuthor": "@Nandini",
"defaultCopyright": "@Nandini",
"defaultFormat": "PDF",
"defaultLayout": "MAP_ONLY"
}
}, {
"position": {
"left": 105,
"top": 45,
"relativeTo": "map"
},
"placeholderIndex": 1,
"id": "_6",
"name": "Query",
"version": "2.6",
"closeable": true,
"uri": "widgets/Query/Widget",
"config": {
"hideLayersAfterWidgetClosed": true,
"labelTasks": "Query Filter Task",
"labelResults": "Query Filter Result",
"queries": [{
"url": "",
"name": "Urban Construction",
"icon": "",
"filter": {
"logicalOperator": "AND",
"parts": [{
"logicalOperator": "OR",
"parts": [{
"fieldObj": {
"name": "Wind_Speed",
"label": "Wind_Speed",
"shortType": "number",
"type": "esriFieldTypeDouble"
},
"operator": "numberOperatorIsGreaterThan",
"valueObj": {
"isValid": true,
"type": "value",
"value": 87
},
"interactiveObj": {
"prompt": "Wind_Speed is greater than",
"hint": "",
"cascade": "none"
},
"caseSensitive": false,
"expr": "Wind_Speed > 87"
}, {
"fieldObj": {
"name": "Earth_Quak",
"label": "Earth_Quak",
"shortType": "string",
"type": "esriFieldTypeString"
},
"operator": "stringOperatorIs",
"valueObj": {
"isValid": true,
"type": "unique",
"value": "Zone_2"
},
"interactiveObj": {
"prompt": "Earth_Quak is",
"hint": "",
"cascade": "previous"
},
"caseSensitive": false,
"expr": "Earth_Quak = 'Zone_2'"
}, {
"fieldObj": {
"name": "Building_T",
"label": "Building_T",
"shortType": "string",
"type": "esriFieldTypeString"
},
"operator": "stringOperatorIs",
"valueObj": {
"isValid": true,
"type": "unique",
"value": "Commercial Complex"
},
"interactiveObj": {
"prompt": "Building_T is",
"hint": "",
"cascade": "previous"
},
"caseSensitive": false,
"expr": "Building_T = 'Commercial Complex'"
}],
"expr": "Wind_Speed > 87 OR Earth_Quak = 'Zone_2' OR Building_T = 'Commercial Complex'"
}],
"expr": "Wind_Speed > 87 OR Earth_Quak = 'Zone_2' OR Building_T = 'Commercial Complex'"
},
"showSQL": true,
"spatialFilter": {
"currentMapExtent": null,
"drawing": null,
"useFeatures": null,
"fullLayerExtent": null
},
"popupInfo": {
"title": "{FID}",
"fieldInfos": [{
"fieldName": "FID",
"label": "FID",
"tooltip": "",
"visible": false,
"format": {
"places": 0,
"digitSeparator": true
},
"stringFieldOption": "textbox"
}, {
"fieldName": "Id",
"label": "Id",
"tooltip": "",
"visible": false,
"format": {
"places": 0,
"digitSeparator": true
},
"stringFieldOption": "textbox"
}, {
"fieldName": "name",
"label": "name",
"tooltip": "",
"visible": false,
"format": null,
"stringFieldOption": "textbox"
}, {
"fieldName": "Earth_Quak",
"label": "Earth_Quak",
"tooltip": "",
"visible": false,
"format": null,
"stringFieldOption": "textbox"
}, {
"fieldName": "Wind_Speed",
"label": "Wind_Speed",
"tooltip": "",
"visible": false,
"format": {
"places": 2,
"digitSeparator": true
},
"stringFieldOption": "textbox"
}, {
"fieldName": "Flooding_p",
"label": "Flooding_p",
"tooltip": "",
"visible": false,
"format": null,
"stringFieldOption": "textbox"
}, {
"fieldName": "Building_T",
"label": "Building_T",
"tooltip": "",
"visible": false,
"format": null,
"stringFieldOption": "textbox"
}, {
"fieldName": "Area",
"label": "Area",
"tooltip": "",
"visible": false,
"format": {
"places": 2,
"digitSeparator": true
},
"stringFieldOption": "textbox"
}, {
"fieldName": "UrbanConstruction",
"label": "UrbanConstruction",
"tooltip": "",
"visible": true,
"format": null,
"stringFieldOption": "textbox"
}, {
"fieldName": "GlobalID",
"label": "GlobalID",
"tooltip": "",
"visible": false,
"format": null,
"stringFieldOption": "textbox"
}, {
"fieldName": "CreationDate",
"label": "CreationDate",
"tooltip": "",
"visible": false,
"format": {
"dateFormat": "longMonthDayYear"
},
"stringFieldOption": "textbox"
}, {
"fieldName": "Creator",
"label": "Creator",
"tooltip": "",
"visible": false,
"format": null,
"stringFieldOption": "textbox"
}, {
"fieldName": "EditDate",
"label": "EditDate",
"tooltip": "",
"visible": false,
"format": {
"dateFormat": "longMonthDayYear"
},
"stringFieldOption": "textbox"
}, {
"fieldName": "Editor",
"label": "Editor",
"tooltip": "",
"visible": false,
"format": null,
"stringFieldOption": "textbox"
}],
"description": null,
"showAttachments": false,
"mediaInfos": [],
"readFromWebMap": false
},
"orderByFields": ["Area ASC"],
"useLayerSymbol": false,
"resultsSymbol": {
"color": [155, 187, 89, 128],
"outline": {
"color": [115, 140, 61, 255],
"width": 1.5,
"type": "esriSLS",
"style": "esriSLSSolid",
"marker": null
},
"type": "esriSFS",
"style": "esriSFSSolid"
},
"canModifySymbol": true,
"keepResultsOnMapAfterCloseWidget": true,
"enableExport": true,
"singleResultLayer": false,
"webMapLayerId": "Urban_Construction_4818"
}]
}
}, {
"position": {
"left": 155,
"top": 45,
"relativeTo": "map"
},
"placeholderIndex": 1,
"id": "_7",
"name": "Share",
"version": "2.6",
"closeable": true,
"uri": "widgets/Share/Widget",
"config": {
"socialMedias": {
"email": true,
"facebook": true,
"twitter": true,
"googlePlus": true
}
}
}, {
"position": {
"left": 205,
"top": 45,
"relativeTo": "map"
},
"placeholderIndex": 1,
"id": "_8",
"name": "Select",
"version": "2.6",
"closeable": true,
"uri": "widgets/Select/Widget",
"config": {
"selectionColor": "#00FFFF",
"selectionMode": "partial",
"allowExport": false,
"geometryTypes": ["EXTENT"]
}
}, {
"position": {
"left": 255,
"top": 45,
"relativeTo": "map"
},
"placeholderIndex": 1,
"id": "_9",
"name": "BasemapGallery",
"version": "2.6",
"closeable": true,
"uri": "widgets/BasemapGallery/Widget",
"config": {
"basemapGallery": {
"mode": 1,
"basemaps": []
}
}
}, {
"uri": "widgets/OverviewMap/Widget",
"position": {
"bottom": 0,
"right": 0,
"zIndex": 1,
"relativeTo": "map"
},
"version": "2.6",
"id": "widgets_OverviewMap_Widget_10",
"name": "OverviewMap"
}, {
"uri": "widgets/HomeButton/Widget",
"position": {
"left": 7,
"top": 75,
"relativeTo": "map"
},
"version": "2.6",
"id": "widgets_HomeButton_Widget_11",
"name": "HomeButton"
}, {
"uri": "widgets/MyLocation/Widget",
"position": {
"left": 7,
"top": 110,
"relativeTo": "map"
},
"version": "2.6",
"id": "widgets_MyLocation_Widget_12",
"name": "MyLocation"
}, {
"uri": "widgets/AttributeTable/Widget",
"position": {
"relativeTo": "browser"
},
"version": "2.6",
"id": "widgets_AttributeTable_Widget_13",
"name": "AttributeTable"
}, {
"uri": "widgets/Splash/Widget",
"visible": false,
"position": {
"relativeTo": "browser"
},
"version": "2.6",
"id": "widgets_Splash_Widget_14",
"name": "Splash"
}, {
"uri": "widgets/ZoomSlider/Widget",
"position": {
"top": 5,
"left": 7,
"relativeTo": "map"
},
"version": "2.6",
"id": "widgets_ZoomSlider_Widget_15",
"name": "ZoomSlider"
}, {
"uri": "widgets/ExtentNavigate/Widget",
"visible": false,
"position": {
"top": 150,
"left": 7,
"relativeTo": "map"
},
"id": "widgets_ExtentNavigate_Widget_16",
"name": "ExtentNavigate",
"version": "2.6"
}, {
"uri": "widgets/FullScreen/Widget",
"visible": false,
"position": {
"right": 8,
"top": 8,
"relativeTo": "map"
},
"version": "2.6",
"id": "widgets_FullScreen_Widget_17",
"name": "FullScreen"
}],
"panel": {
"uri": "jimu/OnScreenWidgetPanel",
"position": {
"relativeTo": "map"
}
}
},
"map": {
"3D": false,
"2D": true,
"position": {
"left": 0,
"top": 40,
"right": 0,
"bottom": 0
},
"itemId": "12e0b419cc5c4df7a58b9cf5cb661aa7",
"mapOptions": {},
"id": "map",
"portalUrl": "http://esrit3g.maps.arcgis.com"
},
"widgetPool": {
"panel": {
"uri": "themes/FoldableTheme/panels/FoldablePanel/Panel",
"position": {
"top": 5,
"right": 5,
"bottom": 5,
"zIndex": 5,
"relativeTo": "map"
}
},
"widgets": [{
"uri": "widgets/Legend/Widget",
"version": "2.6",
"id": "widgets_Legend_Widget_18",
"name": "Legend",
"index": 0
}, {
"uri": "widgets/LayerList/Widget",
"version": "2.6",
"id": "widgets_LayerList_Widget_19",
"name": "LayerList",
"index": 1
}]
},
"mobileLayout": {
"widgetOnScreen": {
"widgets": {
"widgets/Scalebar/Widget": {
"position": {
"left": 7,
"bottom": 40
},
"version": "1.4"
},
"widgets/Coordinate/Widget": {
"position": {
"left": 7,
"bottom": 17
},
"version": "1.4"
}
}
}
},
"loadingPage": {
"backgroundColor": "#508dca",
"backgroundImage": {
"visible": false
},
"loadingGif": {
"visible": true,
"uri": "configs/loading/images/predefined_loading_1.gif",
"width": 58,
"height": 29
}
},
"wabVersion": "2.6",
"_buildInfo": {
"widgetManifestsMerged": false
},
"isWebTier": false,
"dataSource": {
"dataSources": {
"widget~_6~0": {
"id": "widget~_6~0",
"type": "Features",
"label": "Urban Construction",
"dataSchema": {
"geometryType": "esriGeometryPolygon",
"fields": [{
"name": "FID",
"type": "esriFieldTypeInteger",
"actualType": "int",
"alias": "FID",
"sqlType": "sqlTypeInteger",
"nullable": false,
"editable": false,
"domain": null,
"defaultValue": null
}, {
"name": "Id",
"type": "esriFieldTypeInteger",
"actualType": "int",
"alias": "Id",
"sqlType": "sqlTypeInteger",
"nullable": true,
"editable": true,
"domain": null,
"defaultValue": null
}, {
"name": "name",
"type": "esriFieldTypeString",
"actualType": "nvarchar",
"alias": "name",
"sqlType": "sqlTypeNVarchar",
"length": 50,
"nullable": true,
"editable": true,
"domain": null,
"defaultValue": null
}, {
"name": "Earth_Quak",
"type": "esriFieldTypeString",
"actualType": "nvarchar",
"alias": "Earth_Quak",
"sqlType": "sqlTypeNVarchar",
"length": 50,
"nullable": true,
"editable": true,
"domain": null,
"defaultValue": null
}, {
"name": "Wind_Speed",
"type": "esriFieldTypeDouble",
"actualType": "float",
"alias": "Wind_Speed",
"sqlType": "sqlTypeFloat",
"nullable": true,
"editable": true,
"domain": null,
"defaultValue": null
}, {
"name": "Flooding_p",
"type": "esriFieldTypeString",
"actualType": "nvarchar",
"alias": "Flooding_p",
"sqlType": "sqlTypeNVarchar",
"length": 50,
"nullable": true,
"editable": true,
"domain": null,
"defaultValue": null
}, {
"name": "Building_T",
"type": "esriFieldTypeString",
"actualType": "nvarchar",
"alias": "Building_T",
"sqlType": "sqlTypeNVarchar",
"length": 50,
"nullable": true,
"editable": true,
"domain": null,
"defaultValue": null
}, {
"name": "Area",
"type": "esriFieldTypeDouble",
"actualType": "float",
"alias": "Area",
"sqlType": "sqlTypeFloat",
"nullable": true,
"editable": true,
"domain": null,
"defaultValue": null
}, {
"name": "UrbanConstruction",
"type": "esriFieldTypeString",
"alias": "UrbanConstruction",
"sqlType": "sqlTypeOther",
"length": 50,
"nullable": true,
"editable": true,
"domain": null,
"defaultValue": null
}, {
"name": "GlobalID",
"type": "esriFieldTypeGlobalID",
"alias": "GlobalID",
"sqlType": "sqlTypeOther",
"length": 38,
"nullable": false,
"editable": false,
"domain": null,
"defaultValue": "NEWID() WITH VALUES"
}, {
"name": "CreationDate",
"type": "esriFieldTypeDate",
"alias": "CreationDate",
"sqlType": "sqlTypeOther",
"length": 8,
"nullable": true,
"editable": false,
"domain": null,
"defaultValue": null
}, {
"name": "Creator",
"type": "esriFieldTypeString",
"alias": "Creator",
"sqlType": "sqlTypeOther",
"length": 50,
"nullable": true,
"editable": false,
"domain": null,
"defaultValue": null
}, {
"name": "EditDate",
"type": "esriFieldTypeDate",
"alias": "EditDate",
"sqlType": "sqlTypeOther",
"length": 8,
"nullable": true,
"editable": false,
"domain": null,
"defaultValue": null
}, {
"name": "Editor",
"type": "esriFieldTypeString",
"alias": "Editor",
"sqlType": "sqlTypeOther",
"length": 50,
"nullable": true,
"editable": false,
"domain": null,
"defaultValue": null
}],
"displayField": "",
"objectIdField": null,
"typeIdField": ""
}
}
},
"settings": {}
},
"appItemId": "",
"logoLink": "http://"
}
Hi Robert,
I copied the code into .json file and removed the earlier code in .json file.
But still the webapp Builder stands as mystery. I am not understanding where is it going wrong.
What web server are you using?
Hi Robert,
I have not deployed the app yet.. I am trying to directly open it local system in a browser...
If it gets opened then I will deploy it on IIS Web server.
Hi Janaki,
You will need to add it to a server such as iis or apache.
You can do this on a local machine by using add features.