<?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: Get layer ID from FeatureSet in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519226#M11793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Add the reference to your layer when you do the query like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;queryTask.execute(query, new AsyncResponder(onResult, onFault, myLayerID));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then define your result handler like :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function onResult(featureSet:FeatureSet, myLayerID:Number):void&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Aug 2010 08:22:16 GMT</pubDate>
    <dc:creator>MarnikBlomme</dc:creator>
    <dc:date>2010-08-05T08:22:16Z</dc:date>
    <item>
      <title>Get layer ID from FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519223#M11790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I currently have a problem where I need to be able to retrieve the layer ID from the feature set I am provided with.&amp;nbsp; I can't seem to see anywhere this is possible without knowing which layer the initial query was executed on.&amp;nbsp; Can anyone help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 12:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519223#M11790</guid>
      <dc:creator>LukeEvans</dc:creator>
      <dc:date>2010-08-04T12:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get layer ID from FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519224#M11791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does this belong in the Flex forum for any reason?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use this URL and replace "server" with the name of the server the services reside on and drill down to the service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.server.com/ArcGIS/rest/services"&gt;http://www.server.com/ArcGIS/rest/services&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 18:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519224#M11791</guid>
      <dc:creator>MLowry</dc:creator>
      <dc:date>2010-08-04T18:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get layer ID from FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519225#M11792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does this belong in the Flex forum for any reason?&lt;BR /&gt;&lt;BR /&gt;Use this URL and replace "server" with the name of the server the services reside on and drill down to the service:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.server.com/ArcGIS/rest/services"&gt;http://www.server.com/ArcGIS/rest/services&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think you quite understood what I was asking.&amp;nbsp; I have already executed a Query in Flex.&amp;nbsp; In the query result method I have a FeatureSet returned from the server.&amp;nbsp; I wondered if there was any way of knowing which layer this query was performed on, solely from the FeatureSet returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having this issue because I am running multiple queries, with each possibly using a different layer and different geometry.&amp;nbsp; As these are asynchronous calls, how am I to be certain which result belongs to which query (and therefore which layer)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 06:42:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519225#M11792</guid>
      <dc:creator>LukeEvans</dc:creator>
      <dc:date>2010-08-05T06:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get layer ID from FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519226#M11793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Add the reference to your layer when you do the query like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;queryTask.execute(query, new AsyncResponder(onResult, onFault, myLayerID));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then define your result handler like :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function onResult(featureSet:FeatureSet, myLayerID:Number):void&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 08:22:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519226#M11793</guid>
      <dc:creator>MarnikBlomme</dc:creator>
      <dc:date>2010-08-05T08:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get layer ID from FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519227#M11794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Add the reference to your layer when you do the query like:&lt;BR /&gt;&lt;BR /&gt;queryTask.execute(query, new AsyncResponder(onResult, onFault, myLayerID));&lt;BR /&gt;&lt;BR /&gt;Then define your result handler like :&lt;BR /&gt;&lt;BR /&gt;function onResult(featureSet:FeatureSet, myLayerID:Number):void&lt;BR /&gt;{&lt;BR /&gt;...&lt;BR /&gt;}&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perfect!&amp;nbsp; Thanks a lot for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 08:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519227#M11794</guid>
      <dc:creator>LukeEvans</dc:creator>
      <dc:date>2010-08-05T08:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get layer ID from FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519228#M11795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I don't think you quite understood what I was asking.&amp;nbsp; I have already executed a Query in Flex.&amp;nbsp; In the query result method I have a FeatureSet returned from the server.&amp;nbsp; I wondered if there was any way of knowing which layer this query was performed on, solely from the FeatureSet returned.&lt;BR /&gt;&lt;BR /&gt;I'm having this issue because I am running multiple queries, with each possibly using a different layer and different geometry.&amp;nbsp; As these are asynchronous calls, how am I to be certain which result belongs to which query (and therefore which layer)?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about that! I misunderstood the question. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad you got it worked out!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 12:21:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/get-layer-id-from-featureset/m-p/519228#M11795</guid>
      <dc:creator>MLowry</dc:creator>
      <dc:date>2010-08-05T12:21:48Z</dc:date>
    </item>
  </channel>
</rss>

