<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I auto-execute a geoprocessing widget? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864723#M12206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Previn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're video looks great and thank you for all the help.&amp;nbsp; I'm sorry to be so dense but it still isn't auto-executing for me.&amp;nbsp; I'll review my steps.&lt;/P&gt;&lt;P&gt;1. I copied the geoprocessing widget from my widgets folder and renamed it Geoprocessing_autoexec&lt;/P&gt;&lt;P&gt;2. I modified "name" in the manifest.json file in the new "Geoprocessing_autoexec" widget to be "Geoprocessing_autoexec"&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; I modified _widgetLabel in the string.js file in Geoprocessing_autoexec\nls to be "Geoprocessing_autoexec"&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; I modified the "uri" for the widget in the config.json folder to "widgets/Geoprocessing_autoexec/Widget".&amp;nbsp; (This was not a step you had mentioned but seemed like the right thing to do).&lt;/P&gt;&lt;P&gt;5.&amp;nbsp; I copied your code and pasted it over my startup: function() in the Widget.js of the Geoprocessing_autoexec widget&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't modified anything in the Widget.html file; should I have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 14:09:31 GMT</pubDate>
    <dc:creator>BrandonKeinath1</dc:creator>
    <dc:date>2015-08-12T14:09:31Z</dc:date>
    <item>
      <title>How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864716#M12199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&amp;nbsp; There isn't an input but the user still has to click the "Execute" button in the geoprocessing widget.&amp;nbsp; Is there a way for them to click on the widget and have it fire the geoprocessing service?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if that first part is possible is it also possible to display a message box when the process completes?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 21:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864716#M12199</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-07-27T21:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864717#M12200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replying to bring this back up in the feeds.&amp;nbsp; I am still in need of help on this topic.&amp;nbsp; Any thoughts would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 14:11:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864717#M12200</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-08-11T14:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864718#M12201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running a WAB developer version or an exported template version on your ArcGIS Server?&amp;nbsp; If so, you could just modify the widget and chain the event states of the widgets (post create, startup, call GP) so that there is minimal user interaction.&amp;nbsp; Just show a dijit message box once the GP has finished.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 14:43:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864718#M12201</guid>
      <dc:creator>PrevinWong1</dc:creator>
      <dc:date>2015-08-11T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864719#M12202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Previn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are running WAB developer edition.&amp;nbsp; I haven't worked with event states before; do you have an example you might be able to walk me through or point me to to accomplish the process you describe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 18:13:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864719#M12202</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-08-11T18:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864720#M12203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This widget seems to only have just the startup function so that is the only event state we have to deal with.&lt;/P&gt;&lt;P&gt;If you go into your WAB install folder/client/stemapp/widgets/geoprocessing.&amp;nbsp; If you open the Widget.js file in your text editor of choice.&amp;nbsp; You will notice on line 49, there is "startup: function()".&amp;nbsp; This function ends around line 129.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you open the widget.html file, you will see around line 12, the button that calls "_onExecuteClick".&amp;nbsp; You just need to add this function to the end of the startup function so that it fires off without any user interaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The startup function, with the change, would look like the following with the call to execute the GP at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; startup: function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.inherited(arguments);


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!this.config.taskUrl){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html.setStyle(this.toolNode, 'display', 'none');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html.setStyle(this.errorNode, 'display', '');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.inputNodes = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.drawTools = [];


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //each result will be displayed by dijit
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.resultNodes = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.resultLayers = [];


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editorManager.setMap(this.map);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editorManager.setNls(this.nls);


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultRendererManager.setMap(this.map);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultRendererManager.setNls(this.nls);


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.gp = new Geoprocessor(this.config.taskUrl);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.gp.setOutSpatialReference(this.map.spatialReference);


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(this.config.updateDelay){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.gp.setUpdateDelay(this.config.updateDelay);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.tab = new TabContainer({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tabs: [{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: this.nls.input,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content: this.inputPaneNode
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: this.nls.output,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content: this.outputPaneNode
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selected: this.nls.input
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.tab.placeAt(this.domNode);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.tab.startup();


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.loading = new LoadingIndicator({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hidden: true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, this.loadingNode);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.loading.startup();


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Fires when a synchronous GP task is completed
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.own(on(this.gp, 'execute-complete', lang.hitch(this, this.onExecuteComplete)));


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Fires when an asynchronous GP task using submitJob is complete.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.own(on(this.gp, 'job-complete', lang.hitch(this, this.onJobComplete)));


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.own(on(this.gp, 'job-cancel', lang.hitch(this, this.onJonCancel)));


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Fires when a job status update is available.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.own(on(this.gp, 'status-update', lang.hitch(this, this.onStatusUpdate)));


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Fires when the result of an asynchronous GP task execution is available.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.own(on(this.gp, 'get-result-data-complete',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lang.hitch(this, this.onGetResultDataComplate)));


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Fires when a map image is generated by invoking the getResultImage method.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.own(on(this.gp, 'get-result-image-layer-complete',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lang.hitch(this, this.onGetResultImageLayerComplate)));


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.own(on(this.gp, 'error', lang.hitch(this, this.onError)));


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html.setAttr(this.helpLinkNode, 'href', this.config.helpUrl);


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._generateUniqueID();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!("serverInfo" in this.config)){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Load gp server info if it does not exist.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gputils.getServiceDescription(this.config.taskUrl).then(lang.hitch(this,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function(taskInfo){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.config.serverInfo = taskInfo.serverInfo;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._createInputNodes();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }else{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._createInputNodes();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;this._onExecuteClick();&lt;/STRONG&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864720#M12203</guid>
      <dc:creator>PrevinWong1</dc:creator>
      <dc:date>2021-12-12T10:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864721#M12204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Previn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think I'm doing something right.&amp;nbsp; When I use your code for the startup function I still need to interact with the input dialog.&amp;nbsp; It also seems to change the input dialog for all my geoprocessing widgets; some of which do require some user input parameters.&amp;nbsp; Ideally I would like the user to click the widget and then a few seconds later receive a message box or some other visual cue that the process has completed (please forgive my terrible mark-up).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="allgoodbox.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/121920_allgoodbox.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 19:30:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864721#M12204</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-08-11T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864722#M12205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, making that change will clause all other GP tools to auto execute.&amp;nbsp; What you want to you is make a copy of the GP widget by copying the folder, call the folder something else, and change value in the "name" in the manifest.json file and the "_widgetLabel" in the nls/string.js file.&amp;nbsp; Best to change it to match the folder name.&amp;nbsp; That way WAB will see it as a whole different widget.&amp;nbsp; Then you can have this one auto execute, and then use the existing GP widget for all other GP needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a simple GP that doesn't take any user inputs and using the code change above, does auto fire and complete.&amp;nbsp; Please check the video attached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6162688099001w320h240r728" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6162688099001" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6162688099001w320h240r728');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6162688099001"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 23:16:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864722#M12205</guid>
      <dc:creator>PrevinWong1</dc:creator>
      <dc:date>2015-08-11T23:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864723#M12206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Previn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're video looks great and thank you for all the help.&amp;nbsp; I'm sorry to be so dense but it still isn't auto-executing for me.&amp;nbsp; I'll review my steps.&lt;/P&gt;&lt;P&gt;1. I copied the geoprocessing widget from my widgets folder and renamed it Geoprocessing_autoexec&lt;/P&gt;&lt;P&gt;2. I modified "name" in the manifest.json file in the new "Geoprocessing_autoexec" widget to be "Geoprocessing_autoexec"&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; I modified _widgetLabel in the string.js file in Geoprocessing_autoexec\nls to be "Geoprocessing_autoexec"&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; I modified the "uri" for the widget in the config.json folder to "widgets/Geoprocessing_autoexec/Widget".&amp;nbsp; (This was not a step you had mentioned but seemed like the right thing to do).&lt;/P&gt;&lt;P&gt;5.&amp;nbsp; I copied your code and pasted it over my startup: function() in the Widget.js of the Geoprocessing_autoexec widget&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't modified anything in the Widget.html file; should I have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 14:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864723#M12206</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-08-12T14:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864724#M12207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not have to do step 4.&amp;nbsp; Not sure if that causes any issues.&amp;nbsp; You should not have to modify the widget.html file as well.&amp;nbsp; I'll attached mine that I used.&amp;nbsp; See if it works for you.&amp;nbsp; Just drop it into client/stemapp/widgets and you should be good to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Previn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 15:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864724#M12207</guid>
      <dc:creator>PrevinWong1</dc:creator>
      <dc:date>2015-08-12T15:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864725#M12208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did as you suggested and put the customGP folder in client/sitemapp/widgets and I do see it when I open WAB.&amp;nbsp; However when I use the wizard to configure it spins after entering my gp service url&lt;IMG alt="spinningwidget.JPG" class="image-1 jive-image" height="145" src="https://community.esri.com/legacyfs/online/122071_spinningwidget.JPG" style="width: 281px; height: 144.579032258065px;" width="281" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble understanding, among other things, how the autoexecuting geoprocessing widget knows which widget folder to use if you don't tell it.&amp;nbsp; And my thinking was that you did specify it by changing the uri path in the config.json folder.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 18:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864725#M12208</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-08-12T18:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864726#M12209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try just &lt;STRONG&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://gistest.mnpower.com/mpgis/rest/services" rel="nofollow" target="_blank"&gt;https://gistest.mnpower.com/mpgis/rest/services&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;to see if it can reach your services directory and see if you can drill out to get to the GP you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; You could load a config.json if you wanted to specifically load and troubleshoot some issue, but not needed.&amp;nbsp; The widget will run in a container, that's why you can have two of basically the same widget.&amp;nbsp; The one thing that could get weird affects is that we left the base class the same.&amp;nbsp; so CSS changes could affect both widgets.&amp;nbsp; You could change that later on, but it's not important to test and resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="node.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/122086_node.png" style="width: 620px; height: 58px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 18:52:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864726#M12209</guid>
      <dc:creator>PrevinWong1</dc:creator>
      <dc:date>2015-08-12T18:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864727#M12210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Previn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm able to reach the services directory&lt;/P&gt;&lt;P&gt;&lt;IMG alt="servicedirectory.JPG" class="image-1 jive-image" height="241" src="https://community.esri.com/legacyfs/online/122096_servicedirectory.JPG" style="width: 358px; height: 240.783870967742px;" width="358" /&gt;&lt;/P&gt;&lt;P&gt;but once I choose a service it produces the same "Loading..." issue where it just spins.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 19:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864727#M12210</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-08-12T19:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864728#M12211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check what error (if any) gets generated in the debug console?&amp;nbsp; My guess is that you have mix content.&amp;nbsp; WAB is probably running on http and your service is running in https.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 20:01:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864728#M12211</guid>
      <dc:creator>PrevinWong1</dc:creator>
      <dc:date>2015-08-12T20:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I auto-execute a geoprocessing widget?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864729#M12212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Previn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get these error messages using your gp widget&lt;/P&gt;&lt;P&gt;&lt;IMG alt="gperror.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/122098_gperror.JPG" style="width: 620px; height: 62px;" /&gt;&lt;/P&gt;&lt;P&gt;But when I use the default geoprocessing widget I'm able to use the same https service successfully&lt;/P&gt;&lt;P&gt;&lt;IMG alt="successfulgpconfig.JPG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/122099_successfulgpconfig.JPG" style="width: 620px; height: 236px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 20:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-auto-execute-a-geoprocessing-widget/m-p/864729#M12212</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-08-12T20:25:30Z</dc:date>
    </item>
  </channel>
</rss>

