<?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: addWidget in API javascript 4.12 ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329301#M30478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/portal_addshapefile.html" title="https://developers.arcgis.com/javascript/3/jssamples/portal_addshapefile.html"&gt;This is a sample in 3x&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/225795"&gt;In this thread&lt;/A&gt;&amp;nbsp;Munachiso was able to convert the sample to 4x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gist.github.com/nommuna2/93bc71e90e44b8aad72291f41207fcd9" title="https://gist.github.com/nommuna2/93bc71e90e44b8aad72291f41207fcd9"&gt;Here is the github for the 4x version&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;You do need AGOL or Portal for this to work. Also you may need the resource proxy to remedy any CORS errors you may get. This sample is based on the 3.x, so a lot of the code from that sample is the same with some changes for 4.x.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;- Munachiso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2019 22:42:04 GMT</pubDate>
    <dc:creator>BenElan</dc:creator>
    <dc:date>2019-09-23T22:42:04Z</dc:date>
    <item>
      <title>addData Widget in API javascript 4.12 ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329300#M30477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Portal Viewer, we can add data from portal, from url, or from local file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In WAB developper edition, there is a widget called "addData" :&amp;nbsp;&lt;A href="https://developers.arcgis.com/web-appbuilder/guide/widget-add-data.htm"&gt;https://developers.arcgis.com/web-appbuilder/guide/widget-add-data.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't find a way to do the same in API 4.12. Is there a way to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2019 20:52:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329300#M30477</guid>
      <dc:creator>JUBJUB</dc:creator>
      <dc:date>2019-09-23T20:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: addWidget in API javascript 4.12 ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329301#M30478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/portal_addshapefile.html" title="https://developers.arcgis.com/javascript/3/jssamples/portal_addshapefile.html"&gt;This is a sample in 3x&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/225795"&gt;In this thread&lt;/A&gt;&amp;nbsp;Munachiso was able to convert the sample to 4x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gist.github.com/nommuna2/93bc71e90e44b8aad72291f41207fcd9" title="https://gist.github.com/nommuna2/93bc71e90e44b8aad72291f41207fcd9"&gt;Here is the github for the 4x version&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;You do need AGOL or Portal for this to work. Also you may need the resource proxy to remedy any CORS errors you may get. This sample is based on the 3.x, so a lot of the code from that sample is the same with some changes for 4.x.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;- Munachiso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2019 22:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329301#M30478</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2019-09-23T22:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: addWidget in API javascript 4.12 ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329302#M30479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this is a good method to add data from local files. An other way to upload data is :&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/index.html"&gt;Create a FeatureLayer with client-side graphics | ArcGIS API for JavaScript 4.12&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is there a way in 4x to interact with Portal content ? I mean, is it possible the&amp;nbsp;end-user to load&amp;nbsp;data from Portal (like in Portal Viewer or WAB addData widget) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2019 06:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329302#M30479</guid>
      <dc:creator>JUBJUB</dc:creator>
      <dc:date>2019-09-24T06:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: addData Widget in API javascript 4.12 ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329303#M30480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jub, I am unaware of a built in way to allow the user to add items from Portal. However, using the service url you can try to build it yourself. I can create a sample for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Here is the sample:&amp;nbsp;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fcodepen.io%2Fbenesri%2Fpen%2FQWLYRoK%3Feditors%3D1000" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://codepen.io/benesri/pen/QWLYRoK?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Note that there is no error handling and it assumes everything is a FeatureLayer, but it's something that you can build on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2019 16:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329303#M30480</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2019-09-24T16:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: addData Widget in API javascript 4.12 ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329304#M30481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ben, this sample works perfectly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 16:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adddata-widget-in-api-javascript-4-12/m-p/329304#M30481</guid>
      <dc:creator>JUBJUB</dc:creator>
      <dc:date>2019-09-26T16:00:18Z</dc:date>
    </item>
  </channel>
</rss>

