<?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: Complex Query Find in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535314#M4604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;BLOCKQUOTE&gt;Promethia;226466 wrote:&lt;BR /&gt;my code is&lt;/BLOCKQUOTE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
AGSQuery* query = [AGSQuery query];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = ??????????
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = [NSArray arrayWithObjects: @"foglio", @"particella",nil];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = TRUE;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outSpatialReference = self.mapView.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.queryTask executeWithQuery:query];
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my project i use two UIText Field. One i use for write the number of "foglio" and one for write number of "particella". I want find the "particella" that satisfies the condition "foglio AND particella " with function query.where = ..., but i don't know how to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please Help me&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:15:38 GMT</pubDate>
    <dc:creator>LucaAlferi1</dc:creator>
    <dc:date>2021-12-11T23:15:38Z</dc:date>
    <item>
      <title>Complex Query Find</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535310#M4600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used the query sample code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar {&amp;nbsp; self.mapView.callout.hidden = YES;&amp;nbsp; self.findParams.contains = YES;&amp;nbsp; self.findParams.layerIds = [NSArray arrayWithObjects:@"1",nil];&amp;nbsp; self.findParams.outSpatialReference = self.mapView.spatialReference;&amp;nbsp; self.findParams.returnGeometry = TRUE;&amp;nbsp; self.findParams.searchFields = [NSArray arrayWithObjects:@"fieldName1",@"fieldName2",nil];&amp;nbsp; self.findParams.searchText = searchBar.text;&amp;nbsp; [self.findTask executeWithParameters:self.findParams];&amp;nbsp; [searchBar resignFirstResponder]; }&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;My question!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can i research a layer that execute a query type as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"filedName1 And fieldName2"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 07:24:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535310#M4600</guid>
      <dc:creator>LucaAlferi1</dc:creator>
      <dc:date>2012-05-11T07:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Query Find</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535311#M4601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use AGSQuery and AGSQueryTask instead, for complex queries.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 15:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535311#M4601</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2012-05-11T15:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Query Find</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535312#M4602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Use AGSQuery and AGSQueryTask instead, for complex queries.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my code is&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
AGSQuery* query = [AGSQuery query];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.text = searchBar.text;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = [NSArray arrayWithObjects: @"foglio_partic", nil];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = TRUE;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outSpatialReference = self.mapView.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.queryTask executeWithQuery:query];
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;in the log file this code is good, but not show in map the result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;why??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535312#M4602</guid>
      <dc:creator>LucaAlferi1</dc:creator>
      <dc:date>2021-12-11T23:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Query Find</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535313#M4603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your query executes successfully and it fires queryTask:operation:didExecuteWithFeatureSetResult: of AGSQueryTaskDelegate? If yes, it is your responsibility to add result (graphics in feature set) to graphics layer to be shown on map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 15:50:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535313#M4603</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-08-22T15:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Query Find</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535314#M4604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;BLOCKQUOTE&gt;Promethia;226466 wrote:&lt;BR /&gt;my code is&lt;/BLOCKQUOTE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
AGSQuery* query = [AGSQuery query];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = ??????????
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = [NSArray arrayWithObjects: @"foglio", @"particella",nil];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = TRUE;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outSpatialReference = self.mapView.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.queryTask executeWithQuery:query];
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my project i use two UIText Field. One i use for write the number of "foglio" and one for write number of "particella". I want find the "particella" that satisfies the condition "foglio AND particella " with function query.where = ..., but i don't know how to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please Help me&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:15:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535314#M4604</guid>
      <dc:creator>LucaAlferi1</dc:creator>
      <dc:date>2021-12-11T23:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Query Find</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535315#M4605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;self.queryTask = nil;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// i've already setup the other query properties like returnGeometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.query.text = @"";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.query.where = @"STREET = 'MAIN' AND SUFFIX = 'ST'"; // example of where clause&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; self.queryTask = [AGSQueryTask queryTaskWithURL:[NSURL URLWithString:kCivicURL]];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; self.queryTask.delegate = self;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //execute find task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.operation = [self.queryTask executeWithQuery:self.query];&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 11:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535315#M4605</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2012-08-27T11:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Query Find</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535316#M4606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luca,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your where clause should be,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;query.where = [NSString stringWithFormat:@"foglio = '%@' AND particella = '%@',foglioTextField.text,particellaTextField.text];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 17:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/complex-query-find/m-p/535316#M4606</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-08-27T17:48:22Z</dc:date>
    </item>
  </channel>
</rss>

