<?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: Call web service that can be reached by a url in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/call-web-service-that-can-be-reached-by-a-url/m-p/839087#M9077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Caroline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You would develop a custom widget and call the web service using &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/esri.request-amd.html"&gt;esriRequest&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Here is a JS API sample that uses esriRequest:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/fl_featureCollection.html" title="https://developers.arcgis.com/javascript/3/jssamples/fl_featureCollection.html"&gt;Feature collection | ArcGIS API for JavaScript 3.27&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want the web service to be called from a button and not open a widget panel then you can look at my code for URL button widget on how to execute code on widget button click without have a panel open.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2019 14:15:32 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-01-10T14:15:32Z</dc:date>
    <item>
      <title>Call web service that can be reached by a url</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/call-web-service-that-can-be-reached-by-a-url/m-p/839086#M9076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In a web app builder gis ,how do i add a button that call a&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;web service that can be reached by a url and then when finish refresh the map?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;If you have examples it will be nice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 07:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/call-web-service-that-can-be-reached-by-a-url/m-p/839086#M9076</guid>
      <dc:creator>CarolineBettach</dc:creator>
      <dc:date>2019-01-10T07:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Call web service that can be reached by a url</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/call-web-service-that-can-be-reached-by-a-url/m-p/839087#M9077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Caroline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You would develop a custom widget and call the web service using &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/esri.request-amd.html"&gt;esriRequest&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Here is a JS API sample that uses esriRequest:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/fl_featureCollection.html" title="https://developers.arcgis.com/javascript/3/jssamples/fl_featureCollection.html"&gt;Feature collection | ArcGIS API for JavaScript 3.27&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want the web service to be called from a button and not open a widget panel then you can look at my code for URL button widget on how to execute code on widget button click without have a panel open.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/call-web-service-that-can-be-reached-by-a-url/m-p/839087#M9077</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-01-10T14:15:32Z</dc:date>
    </item>
  </channel>
</rss>

