<?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 Creating Reports using ArcGIS hosted Service Proxies in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-reports-using-arcgis-hosted-service/m-p/212557#M19674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am currently trying to write a javascript program to Create Reports using an ArcGIS hosted Service Proxy. I currently have an issue in that anytime I send a url using an esrirequest, instead of sending an empty string it send the file location of wherever reportfinder.js is in my computer. This is a problem because the service proxy sends a url of the form "&lt;A class="link-titled" href="https://utility.arcgis.com/usrsvcs/appservices/proxyno/rest/services/World/GeoenrichmentNo./GeoEnrichment/CreateReport" title="https://utility.arcgis.com/usrsvcs/appservices/proxyno/rest/services/World/GeoenrichmentNo./GeoEnrichment/CreateReport"&gt;https://utility.arcgis.com/usrsvcs/appservices/proxyno/rest/services/World/GeoenrichmentNo./GeoEnrichment/CreateReport&lt;/A&gt;&amp;nbsp;", making it so that all that I could put in afterwards would be the search terms for the report rather than an actual url. Is there any way to send an empty url for esri request? If not, is there any other way to Create Reports using the ArcGIS hosted Service Proxies?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is attached, with the server number and referred site redacted for privacy reasons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 May 2017 20:13:22 GMT</pubDate>
    <dc:creator>MarcRutzen</dc:creator>
    <dc:date>2017-05-25T20:13:22Z</dc:date>
    <item>
      <title>Creating Reports using ArcGIS hosted Service Proxies</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-reports-using-arcgis-hosted-service/m-p/212557#M19674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am currently trying to write a javascript program to Create Reports using an ArcGIS hosted Service Proxy. I currently have an issue in that anytime I send a url using an esrirequest, instead of sending an empty string it send the file location of wherever reportfinder.js is in my computer. This is a problem because the service proxy sends a url of the form "&lt;A class="link-titled" href="https://utility.arcgis.com/usrsvcs/appservices/proxyno/rest/services/World/GeoenrichmentNo./GeoEnrichment/CreateReport" title="https://utility.arcgis.com/usrsvcs/appservices/proxyno/rest/services/World/GeoenrichmentNo./GeoEnrichment/CreateReport"&gt;https://utility.arcgis.com/usrsvcs/appservices/proxyno/rest/services/World/GeoenrichmentNo./GeoEnrichment/CreateReport&lt;/A&gt;&amp;nbsp;", making it so that all that I could put in afterwards would be the search terms for the report rather than an actual url. Is there any way to send an empty url for esri request? If not, is there any other way to Create Reports using the ArcGIS hosted Service Proxies?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is attached, with the server number and referred site redacted for privacy reasons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 20:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-reports-using-arcgis-hosted-service/m-p/212557#M19674</guid>
      <dc:creator>MarcRutzen</dc:creator>
      <dc:date>2017-05-25T20:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Reports using ArcGIS hosted Service Proxies</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-reports-using-arcgis-hosted-service/m-p/212558#M19675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc,&lt;/P&gt;&lt;P&gt;1. You are trying to use an ArcGIS hosted proxy service&lt;/P&gt;&lt;P&gt;2. Also, an ESRI hosted map service&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i did understand your issue correctly, &amp;nbsp; I think the service URL needs to be passed separately than the proxy service URL. After i made a few changes to your code as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;require&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;"esri/config"&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;esriConfig&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
esriConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;io&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;proxyUrl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"/proxy/"&lt;/SPAN&gt;
esriConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;io&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;alwaysUseProxy &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;
Referrer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Freferredwebsite.com%2F" target="_blank"&gt;https://referredwebsite.com/&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&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="token function"&gt;require&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;"esri/IdentityManager"&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;IdentityManager&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="token function"&gt;require&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;"esri/request"&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;esriRequest&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; request &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;esriRequest&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// Service parameters if required, sent with URL as key/value pairs&lt;/SPAN&gt;
url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Futility.arcgis.com%2Fusrsvcs%2Fappservices%2Fproxyno%2Frest%2Fservices%2FWorld%2FGeoenrichmentNo.%2FGeoEnrichment%2FCreateReport%3FstudyAreas%3D" target="_blank"&gt;https://utility.arcgis.com/usrsvcs/appservices/proxyno/rest/services/World/GeoenrichmentNo./GeoEnrichment/CreateReport?studyAreas=&lt;/A&gt;&lt;SPAN&gt;[{"sourceCountry":"US","layer":"US.Places","ids":["4850256,2253545"]}]&amp;amp;report=community_profile&amp;amp;reportFields={"title": "My Report","subtitle": "Produced by Company X"}&amp;amp;f=bin&amp;amp;format=PDF'&lt;/SPAN&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;
request&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setRequestHeader&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
request&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;requestSucceeded&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; requestFailed&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="token function"&gt;requestSucceeded&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;data&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Data: "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; data&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// print the data to browser's console&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="token function"&gt;requestFailed&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;error&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Error: "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;message&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;/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>Sat, 11 Dec 2021 10:26:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-reports-using-arcgis-hosted-service/m-p/212558#M19675</guid>
      <dc:creator>MirHashmi</dc:creator>
      <dc:date>2021-12-11T10:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Reports using ArcGIS hosted Service Proxies</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-reports-using-arcgis-hosted-service/m-p/212559#M19676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help. Eventually I found that the arcgis proxy was too buggy, so I just created a custom proxy to query ESRI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 20:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/creating-reports-using-arcgis-hosted-service/m-p/212559#M19676</guid>
      <dc:creator>MarcRutzen</dc:creator>
      <dc:date>2017-05-30T20:58:52Z</dc:date>
    </item>
  </channel>
</rss>

