<?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: Is it possible to use a URL parameter with a Geoprocessing widget? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618717#M16361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;:facepalm:&lt;/P&gt;&lt;P&gt;Right you are Robert. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2019 22:39:15 GMT</pubDate>
    <dc:creator>LeonAus</dc:creator>
    <dc:date>2019-05-06T22:39:15Z</dc:date>
    <item>
      <title>Is it possible to use a URL parameter with a Geoprocessing widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618713#M16357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&amp;nbsp; I would like to customize my URL to accommodate my geoprocessing widget parameter.&amp;nbsp;Is this possible?&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:27:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618713#M16357</guid>
      <dc:creator>LynnGaines</dc:creator>
      <dc:date>2018-03-01T14:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a URL parameter with a Geoprocessing widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618714#M16358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lynn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Inside your widgets code you can access the url parameters using&amp;nbsp;ConfigManager.getInstance().urlParams&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;define&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'jimu/ConfigManager'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
ConfigManager&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; cManager &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ConfigManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; urlParams &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; cManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;urlParams&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618714#M16358</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T02:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a URL parameter with a Geoprocessing widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618715#M16359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this snippet, exactly what I need, and all your posts really, they have helped me out greatly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question I have, which to this point has confused me, is if I run this code in it's own widget with nothing else, it works fine, but&amp;nbsp;when I first copied this code into an&amp;nbsp;existing widget (a search widget for example) in an already existing app, I&amp;nbsp;was unable to get an instance of the ConfigManager with an error saying&amp;nbsp;TypeError: ConfigManager.getInstance is not a function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After playing around I was able to get an instance, and&amp;nbsp;I think what did the trick was moving the 'jimu/ConfigManager' and&amp;nbsp;ConfigManager (lines 3 &amp;amp; 7 in your example), directly after the 'jimu/BaseWidget' and BaseWidget lines, but I also deployed the widget with nothing else that worked to the app through the web appbuilder GUI, and restarted web appbuilder after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had this problem trying to add references to my app before and I have been able to get them to work with a combination of creating examples through the demo widget process, saving them to the stemapps folder, deploying the example widget to the app, testing the example widget, restarting web appbuilder, then the code in the existing widget will&amp;nbsp;be able to get an instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I feel like an superstitious sports player that has to touch his belt 3 times, adjust hat, tap all 4 corners of the home plate in the same order, then it will work. Wondering if you can enlighten me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2019 04:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618715#M16359</guid>
      <dc:creator>LeonAus</dc:creator>
      <dc:date>2019-05-06T04:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a URL parameter with a Geoprocessing widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618716#M16360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So your likely issue is that when you define modules their associated&amp;nbsp;parameters in the function have to be in the same order you define the modules inside the array. For example:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;define&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'dojo/_base/lang'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'jimu/ConfigManager'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'esri/Color'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
lang&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
ConfigManager&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
Color
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Notice dojo lang is listed then ConfigManager, then Color. Now in the function parameters have to be listed in that same Exact order as above. So in this next example I will show and explain improper ordering and the result.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;define&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'dojo/_base/lang'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'jimu/ConfigManager'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'esri/Color'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
ConfigManager&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
Color&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
lang&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now in the above code the parameter ConfigManager is associated/linked to the dojo lang module and it does not have a&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;getInstance&lt;SPAN&gt;&amp;nbsp;function, and the Color parameter is linked to the jimu Configmanager, etc, etc.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618716#M16360</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T02:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a URL parameter with a Geoprocessing widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618717#M16361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;:facepalm:&lt;/P&gt;&lt;P&gt;Right you are Robert. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2019 22:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/is-it-possible-to-use-a-url-parameter-with-a/m-p/618717#M16361</guid>
      <dc:creator>LeonAus</dc:creator>
      <dc:date>2019-05-06T22:39:15Z</dc:date>
    </item>
  </channel>
</rss>

