<?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: query multiple layers at once in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508665#M14233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Saugat,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. The find task does not work with anything other than a string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. You would loop through the mapservices in the map&amp;nbsp; and use the visibleLayers property of say the ArcGISDynamicMapServiceLayer. The layerIds&amp;nbsp; property is not necessary if you want to search all the layers of a mapservice though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Now I want to click on the feature to display the attributes.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe the Identify Task is a better match.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2011 17:08:48 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2011-04-13T17:08:48Z</dc:date>
    <item>
      <title>query multiple layers at once</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508662#M14230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I query multiple layers from the same program. For eg: I have 10 layers published in the ArcGis server (layer0, layer1......layer9), and I have all the layers turned on in the flex viewer. Now I want to click on the feature to display the attributes. Do I need to set up 10 QueryTask for this like....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;esri:QueryTask id="queryTask"&amp;nbsp;&amp;nbsp; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;esri:QueryTask id="queryTask"&amp;nbsp;&amp;nbsp; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/1" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/1&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;esri:QueryTask id="queryTask"&amp;nbsp;&amp;nbsp; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/9" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/9&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any other method or flex sample I can refer which queries simultaneously?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 14:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508662#M14230</guid>
      <dc:creator>SaugatJoshi</dc:creator>
      <dc:date>2011-04-12T14:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: query multiple layers at once</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508663#M14231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Saugat,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You need to look into the FindTask:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/FindTask.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/FindTask.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 19:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508663#M14231</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-04-12T19:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: query multiple layers at once</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508664#M14232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Bob, for the reply. I did go in the FindTask direction and looked at its API. I believe it needs to have a "search text" against which the layers are checked for. My aim however is to click on the map and get the attribute pertaining to it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Do you think I can replace the search with mouseclick event and it still works? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. How can I know from the application the total number of layers published in the server as we still need to give the layerIds field for the layers to be searched?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like "Realted record" we have in the sample but with multiple layers in it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=FeatureLayerQueryRelated"&gt;http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=FeatureLayerQueryRelated&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 14:00:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508664#M14232</guid>
      <dc:creator>SaugatJoshi</dc:creator>
      <dc:date>2011-04-13T14:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: query multiple layers at once</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508665#M14233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Saugat,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. The find task does not work with anything other than a string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. You would loop through the mapservices in the map&amp;nbsp; and use the visibleLayers property of say the ArcGISDynamicMapServiceLayer. The layerIds&amp;nbsp; property is not necessary if you want to search all the layers of a mapservice though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Now I want to click on the feature to display the attributes.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe the Identify Task is a better match.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 17:08:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508665#M14233</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-04-13T17:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: query multiple layers at once</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508666#M14234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Identify Task worded just fine. Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 20:27:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/query-multiple-layers-at-once/m-p/508666#M14234</guid>
      <dc:creator>SaugatJoshi</dc:creator>
      <dc:date>2011-04-21T20:27:42Z</dc:date>
    </item>
  </channel>
</rss>

