I am trying to unzip and deploy a web app created with WAB 2.x. onto a different PC. However, I would like to update the Task URL of all my GP widgets to re-route them to a different GIS Server I am using now. Which file(s) should I look at inside my ../webappbuilder/server/apps/<app_number> folder to modify and update the new task URLs and leave everything else untouched on the app structure?
Solved! Go to Solution.
The task URL is:
https://<my_GIS_domain>/arcgis/rest/services/Geoprocessing/DrawSystemsfromTable/GPServer
Usually whether I choose "some task" as in "Draw%20Systems%20from%20Table" after /GPServer/... or not it always works when setting up my widget. So as far as the URL pointing and grabbing/validating the GP task, that URL above works if that is what you were making sure...
When you add just the .../GPServer to the widgets settings UI it looks for the specific task and enters that to the task url
i.e. task url is .../GPServer/Draw%20Systems%20from%20Table
and serverInfo url is just .../GPServer
Right, so here is how I had "updated" parameters in the configs:
"helpUrl": "http://<my_GIS_domain>/arcgis/rest/directories/arcgisoutput/Geoprocessing/DrawSystemsfromTable_GPServer/Geoprocessing_DrawSystemsfromTable/DrawSystemsfromTable.htm"
"serverInfo":{
...
"url": "http://<my_GIS_domain>/arcgis/rest/services/Geoprocessing/DrawSystemsfromTable/GPServer/"
...
"taskUrl": "http://<my_GIS_domain>/arcgis/rest/services/Geoprocessing/DrawSystemsfromTable/GPServer/Draw Systems from Table"
Shouldn't this be correct already?
Yes it look correct. So I assume that it is still not working. Can you try adding the new server url in your WAB builder when configuring the widget then and just copy the configs/Geoprocessing/config_Geoprocessing.json once you have it setup correctly?
Will try and let you know how that goes...thanks a lot!