<?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 Loading ArcGIS Online Data from a custom Widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841230#M9334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I will wish to create a widget in which the user can select and load a layer from ArcGIS OnLine portal organization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;I seem to have found an appropriate solution &lt;A href="https://developers.arcgis.com/web-appbuilder/api-reference/itemselector.htm"&gt;here&lt;/A&gt; but I do not understand at all how it works or how to use it ...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Can you confirm that this tool suits my needs and help me understand a little how to integrate my dévellopement and how to customise it ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Thanx a lot by advance,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2015 07:26:46 GMT</pubDate>
    <dc:creator>FlorianCADOZ</dc:creator>
    <dc:date>2015-09-16T07:26:46Z</dc:date>
    <item>
      <title>Loading ArcGIS Online Data from a custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841230#M9334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I will wish to create a widget in which the user can select and load a layer from ArcGIS OnLine portal organization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;I seem to have found an appropriate solution &lt;A href="https://developers.arcgis.com/web-appbuilder/api-reference/itemselector.htm"&gt;here&lt;/A&gt; but I do not understand at all how it works or how to use it ...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Can you confirm that this tool suits my needs and help me understand a little how to integrate my dévellopement and how to customise it ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Thanx a lot by advance,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 07:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841230#M9334</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-09-16T07:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS Online Data from a custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841231#M9335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes I would say that is the route to go with. If you need an example of how to work with it the Query widget settings dialog uses it by using the jimu/dijit/_QueryableLayerSourcePopup which uses jimu/dijit/QueryableLayerSource which uses jimu/dijit/QueryableServiceChooserFromPortal which uses jimu/dijit/ItemSelector&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 14:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841231#M9335</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-09-16T14:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS Online Data from a custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841232#M9336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh yeah thx, it should be a good way for beguinning ! &lt;/P&gt;&lt;P&gt;I also would like to know if it's possible to custom the UI ! For exemple I would have only the content tab and not the 3 others...Do you know if it's possible ?&lt;BR /&gt;&lt;IMG alt="Sans titre.png" class="image-1 jive-image" src="/legacyfs/online/127039_Sans titre.png" style="width: 620px; height: 236px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 14:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841232#M9336</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-09-16T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS Online Data from a custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841233#M9337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Sure with some code edits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 14:39:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841233#M9337</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-09-16T14:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS Online Data from a custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841234#M9338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;I'm sorry but I don't really understand how the widget Query is working because of all his files ( Setting, SingleQuerySetting , SortFields , PopupConfig , etc.) and I also don't understand how to use the different dijit...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;For exemple, you talked about &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;jimu/dijit/_QueryableLayerSourcePopup which uses jimu/dijit/QueryableLayerSource which uses jimu/dijit/QueryableServiceChooserFromPortal which uses jimu/dijit/ItemSelector but I only found the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;jimu/dijit/_QueryableLayerSourcePopup in the SingleQuerySetting.js and the Setting.js but I really don't understand how to use and custom it...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;In parallel, I tried to use the ItemSelector, that was really simplest to load it in my custom widget, but, connected or not, it didn't want to show my data on my AGOL portal... (you can see it in my last screenshot)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I'm a little disarmed right now...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 14:30:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841234#M9338</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-09-17T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS Online Data from a custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841235#M9339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have had no need to do this myself so I can only point you to what I see used in existing widgets. In the QueryServiceChooserFromPortal.js file it inits the ItemSelector using this code:&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;&amp;nbsp;&amp;nbsp; //init selector
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.selector = new ItemSelector({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; portalUrl: this.portalUrl,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; itemTypes: ['Feature Service', 'Map Service', 'Image Service'],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onlyShowOnlineFeaturedItems: false
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.own(on(this.selector, 'item-selected', lang.hitch(this, this._onItemSelected)));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.own(on(this.selector, 'none-item-selected', lang.hitch(this, this._onNoneItemSelected)));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.selector.placeAt(this.selectorContainer);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.selector.startup();&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you doing similar? Can you translate the error message that appears in your screenshot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:16:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841235#M9339</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T10:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS Online Data from a custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841236#M9340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Huuum I don't have a &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;QueryServiceChooserFromPortal.js in the query widget...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I would like to load a popup with my itemselector when I click on the Agol radiobutton but the native itemselector doesn't want to sync with my AGOL portal and I don't understand how to use properly the _QueryableLayerSourcePopup...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the error message, it said something like : &lt;SPAN lang="en"&gt;Your login session has expired. Refresh your browser to reconnect to your portal.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 15:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841236#M9340</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-09-17T15:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS Online Data from a custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841237#M9341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;QueryServiceChooserFromPortal.js is in the jimu.js\dijit folder and required/referenced by the QueryableLayerSource.js.&amp;nbsp; If you want the popup dialog ability but not the other tabs and radio button options that you see in the _QueryableLayerSourcePopup then you need to use the jimu/dijit/Popup this is what gives you the popup dialog to house your content.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Right now the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;_QueryableLayerSourcePopup.js&amp;nbsp; uses &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;jimu/dijit/Popup to display the popup dialog that contains the jimu/dijit/QueryableLayerSource is the content of the popup that has the 3 radio buttons Select from Map, Add from ArcGIS Online, Add Service URL. Since you are only interested in the "Add from ArcGIS Online" portion then you can just add the jimu/dijit/QueryableServiceChooserFromPortal to your js code that uses &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;jimu/dijit/Popup.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 15:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/loading-arcgis-online-data-from-a-custom-widget/m-p/841237#M9341</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-09-17T15:43:20Z</dc:date>
    </item>
  </channel>
</rss>

