Select to view content in your preferred language

How do I auto-execute a geoprocessing widget?

5317
13
07-27-2015 02:15 PM
BrandonKeinath1
Deactivated User

I have a geoprocessing service that executes a reconcile and then a post of a version inside a web appbuilder application running on our ArcGIS Server.  There isn't an input but the user still has to click the "Execute" button in the geoprocessing widget.  Is there a way for them to click on the widget and have it fire the geoprocessing service? 

And if that first part is possible is it also possible to display a message box when the process completes? 

Any thoughts are appreciated.

Thanks,

Brandon

0 Kudos
13 Replies
PrevinWong1
Esri Contributor

try just https://gistest.mnpower.com/mpgis/rest/services to see if it can reach your services directory and see if you can drill out to get to the GP you need.

On your other point, you don't need to add the config, but WAB keeps track of what has been added or removed. Since we changed the manifest and folder, WAB sees it and imports it as a whole separate js library.  You could load a config.json if you wanted to specifically load and troubleshoot some issue, but not needed.  The widget will run in a container, that's why you can have two of basically the same widget.  The one thing that could get weird affects is that we left the base class the same.  so CSS changes could affect both widgets.  You could change that later on, but it's not important to test and resolve your issue.

node.png

BrandonKeinath1
Deactivated User

Hi Previn,

I'm able to reach the services directory

servicedirectory.JPG

but once I choose a service it produces the same "Loading..." issue where it just spins.


Brandon

0 Kudos
PrevinWong1
Esri Contributor

Can you check what error (if any) gets generated in the debug console?  My guess is that you have mix content.  WAB is probably running on http and your service is running in https.

BrandonKeinath1
Deactivated User

Hi Previn,

I get these error messages using your gp widget

gperror.JPG

But when I use the default geoprocessing widget I'm able to use the same https service successfully

successfulgpconfig.JPG

Thanks,

Brandon

0 Kudos