<?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: Multiple Queries from Single View in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/multiple-queries-from-single-view/m-p/602109#M5272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using two separate AGSQuery objects?&amp;nbsp; If not you may be overwriting the first query when you set up the second one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 21:43:53 GMT</pubDate>
    <dc:creator>MichaelDavis3</dc:creator>
    <dc:date>2014-07-17T21:43:53Z</dc:date>
    <item>
      <title>Multiple Queries from Single View</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/multiple-queries-from-single-view/m-p/602108#M5271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a viewController that gets multiple featureLayer objects from the mapController.&lt;/P&gt;&lt;P&gt;Lets say there are 2 feature layers i want to query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each feature layer has information that i want to access and put into a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get a feature from 1 layer and compare to a feature from 2 layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i query for the first feature it works fine, but when i query for the 2nd feature it blanks out the first and doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The delegates or queryTasks or query are getting messed up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea the best approach for this?&lt;/P&gt;&lt;P&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>Thu, 17 Jul 2014 21:23:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/multiple-queries-from-single-view/m-p/602108#M5271</guid>
      <dc:creator>KyleDunaway</dc:creator>
      <dc:date>2014-07-17T21:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Queries from Single View</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/multiple-queries-from-single-view/m-p/602109#M5272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using two separate AGSQuery objects?&amp;nbsp; If not you may be overwriting the first query when you set up the second one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 21:43:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/multiple-queries-from-single-view/m-p/602109#M5272</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2014-07-17T21:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Queries from Single View</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/multiple-queries-from-single-view/m-p/602110#M5273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way I am doing it now seems wrong but this is what i got.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each feature layer has a queryTask and query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set the queryTasks to what they need to be with the URLs.&lt;/P&gt;&lt;P&gt;I set the query object to what it needs to be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know how to retrieve information from the didExecuteWithFeatureSetResults correctly.&lt;/P&gt;&lt;P&gt;To my understanding this gets called after each query.&lt;/P&gt;&lt;P&gt;Each time i query i want to save the feature into a variable, different variables for each query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking a switch statement inside the didExecuute and set the variables accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im also confused on where the delegates should be places, and if i only need one queryDelegate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the fast reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 21:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/multiple-queries-from-single-view/m-p/602110#M5273</guid>
      <dc:creator>KyleDunaway</dc:creator>
      <dc:date>2014-07-17T21:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Queries from Single View</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/multiple-queries-from-single-view/m-p/602111#M5274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your reply made me rethink the query and thus fixed my problem.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i did was switch inside the didExecute on queryTask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 22:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/multiple-queries-from-single-view/m-p/602111#M5274</guid>
      <dc:creator>KyleDunaway</dc:creator>
      <dc:date>2014-07-17T22:24:49Z</dc:date>
    </item>
  </channel>
</rss>

