<?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: Access geoprocessing result with a custom widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/access-geoprocessing-result-with-a-custom-widget/m-p/858853#M11650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var xmlhttp = new XMLHttpRequest();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xmlhttp.onreadystatechange = function() {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (this.readyState == 4 &amp;amp;&amp;amp; this.status == 200) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var obj = JSON.parse(this.responseText);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log("OBJ", obj);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log(obj.results[0].value);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; xmlhttp.open("GET", "SOMUEURL&lt;A class="link-titled" href="https://matterhorncv.co.pierce.wa.us/spatialservices/rest/services/GPServices/GenKML/GPServer/Script" title="https://matterhorncv.co.pierce.wa.us/spatialservices/rest/services/GPServices/GenKML/GPServer/Script"&gt;/GPServer/Script&lt;/A&gt;&amp;nbsp;/execute?xmin="+xmin+"&amp;amp;ymin="+ymin+"&amp;amp;xmax="+xmax+"&amp;amp;ymax="+ymax+"&amp;amp;f=pjson", true);//parameters to send to GP service&lt;BR /&gt; xmlhttp.send(); &lt;BR /&gt; },&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2019 21:49:21 GMT</pubDate>
    <dc:creator>JamalWest2</dc:creator>
    <dc:date>2019-06-05T21:49:21Z</dc:date>
    <item>
      <title>Access geoprocessing result with a custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/access-geoprocessing-result-with-a-custom-widget/m-p/858852#M11649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to figure out if it's possible to point a custom widget back to the results of a GP service that are associated with that task, but I'm having trouble finding information on it. I need to build a better graphing widget than the pre-built ones, has anyone here ever accessed GP results with a custom widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 15:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/access-geoprocessing-result-with-a-custom-widget/m-p/858852#M11649</guid>
      <dc:creator>GrantHaynes</dc:creator>
      <dc:date>2019-04-26T15:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access geoprocessing result with a custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/access-geoprocessing-result-with-a-custom-widget/m-p/858853#M11650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var xmlhttp = new XMLHttpRequest();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xmlhttp.onreadystatechange = function() {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (this.readyState == 4 &amp;amp;&amp;amp; this.status == 200) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var obj = JSON.parse(this.responseText);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log("OBJ", obj);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log(obj.results[0].value);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; xmlhttp.open("GET", "SOMUEURL&lt;A class="link-titled" href="https://matterhorncv.co.pierce.wa.us/spatialservices/rest/services/GPServices/GenKML/GPServer/Script" title="https://matterhorncv.co.pierce.wa.us/spatialservices/rest/services/GPServices/GenKML/GPServer/Script"&gt;/GPServer/Script&lt;/A&gt;&amp;nbsp;/execute?xmin="+xmin+"&amp;amp;ymin="+ymin+"&amp;amp;xmax="+xmax+"&amp;amp;ymax="+ymax+"&amp;amp;f=pjson", true);//parameters to send to GP service&lt;BR /&gt; xmlhttp.send(); &lt;BR /&gt; },&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 21:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/access-geoprocessing-result-with-a-custom-widget/m-p/858853#M11650</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2019-06-05T21:49:21Z</dc:date>
    </item>
  </channel>
</rss>

