<?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: querytask proxy using actionscript in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505555#M14166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have known that. Thanks for the clarification Bjorn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 19:21:51 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-09-09T19:21:51Z</dc:date>
    <item>
      <title>querytask proxy using actionscript</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505549#M14160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to use proxy for the querytask in the actionscript (not in the xml widget config).&amp;nbsp; What is equivalent to &amp;lt;useproxy&amp;gt;true&amp;lt;/useproxy&amp;gt; to actionscript?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a property that I can use with the query? I couldn'r find one. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var queryBuffer:Query = new Query();&lt;/P&gt;&lt;P&gt;&amp;nbsp; queryBuffer.spatialRelationship = querySpatialRel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; queryBuffer.geometry = geom;&lt;/P&gt;&lt;P&gt;&amp;nbsp; queryBuffer.returnGeometry = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp; queryBufferTask.url=layerConfig.url;&lt;/P&gt;&lt;P&gt;&amp;nbsp; queryBuffer.outSpatialReference = map.spatialReference;&lt;/P&gt;&lt;P&gt;&amp;nbsp; queryBuffer.outFields = layerConfig.outfields;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 01:20:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505549#M14160</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2014-09-03T01:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: querytask proxy using actionscript</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505550#M14161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The QueryTask and Query does not have a proxyURL property or anything that you can set. You have to manually add the proxy url to the map service url like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="unlinked" title="http://gislap183/Poxy/proxy.ashx?http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/3"&gt;myQueryTask.url = "http://gislap183/Poxy/proxy.ashx?http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/3";&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use a FeatureLayer instead and it has a proxyURL property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 01:49:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505550#M14161</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-09-03T01:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: querytask proxy using actionscript</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505551#M14162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, Robert. I followed the suggestion and now I get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to use escape characters for the slashes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My url was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;queryBufferTask.url= "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://xxx.xxx.xx.xxx/DotNetProxy/proxy.ashx?https://xxx.xxx.xxx.xxx/arcgis/rest/services/Project_PAD/PAD/MapServer/0" rel="nofollow" target="_blank"&gt;http://xxx.xxx.xx.xxx/DotNetProxy/proxy.ashx?https://xxx.xxx.xxx.xxx/arcgis/rest/services/Project_PAD/PAD/MapServer/0&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 06:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505551#M14162</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2014-09-03T06:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: querytask proxy using actionscript</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505552#M14163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It seems that there is an UNDOCUMENTED property of proxyURL on the QueryTask. So just use proxyURL on your QueryTask&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 13:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505552#M14163</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-09-03T13:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: querytask proxy using actionscript</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505553#M14164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert. I can't believe how did I miss the proxyURL since I was checking each property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;queryBufferTask.proxyURL= "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://xxx.xxx.xx.xxx/DotNetProxy/proxy.ashx?https://xxx.xxx.xxx.xxx/arcgis/rest/services/Project_PAD/PAD/MapServer/0" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;http://xxx.xxx.xx.xxx/DotNetProxy/proxy.ashx?https://xxx.xxx.xxx.xxx/arcgis/rest/services/Project_PAD/PAD/MapServer/0&lt;/A&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&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;would draw the same error&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; #2101.&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;However, using the url and the proxyURL, it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;queryBufferTask.url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://xxx.xxx.xxx.xxx/arcgis/rest/services/Project_PAD/PAD/FeatureServer/0" rel="nofollow" target="_blank"&gt;https://xxx.xxx.xxx.xxx/arcgis/rest/services/Project_PAD/PAD/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; queryBufferTask.proxyURL = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://xxx.xxx.xxx.xxxx/DotNetProxy/proxy.ashx" rel="nofollow" target="_blank"&gt;http://xxx.xxx.xxx.xxxx/DotNetProxy/proxy.ashx&lt;/A&gt;&lt;SPAN&gt;?"; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505553#M14164</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2014-09-03T14:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: querytask proxy using actionscript</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505554#M14165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad the problem got solved.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quick note that the proxyURL is a property of BaseTask, which QueryTask inherits from. It's listed in the documentation at &lt;A href="https://developers.arcgis.com/flex/api-reference/com/esri/ags/tasks/QueryTask.html#propertySummary" title="https://developers.arcgis.com/flex/api-reference/com/esri/ags/tasks/QueryTask.html#propertySummary"&gt;https://developers.arcgis.com/flex/api-reference/com/esri/ags/tasks/QueryTask.html#propertySummary&lt;/A&gt;.&amp;nbsp; Make sure to "Show Inherited Public Properties".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 15:46:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505554#M14165</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2014-09-09T15:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: querytask proxy using actionscript</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505555#M14166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have known that. Thanks for the clarification Bjorn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 19:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/querytask-proxy-using-actionscript/m-p/505555#M14166</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-09-09T19:21:51Z</dc:date>
    </item>
  </channel>
</rss>

