<?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 how to create a findtaskparameters in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-a-findtaskparameters/m-p/74149#M732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;self.findParameters = [[AGSFindParameters alloc] init];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.contains = YES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.layerIds = [NSArray arrayWithObjects:[NSNumber numberWithInt:8],nil];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.searchFields = [NSArray arrayWithObjects:@"OWNER_NAME",nil];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.searchText = @"cline";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.returnGeometry = YES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.outSpatialReference = self.mapView.spatialReference;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I create it like this, but it can't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the findtask is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.findTask = [AGSFindTask findTaskWithURL:[NSURL &lt;/SPAN&gt;&lt;A href="http://ruby.kgs.ku.edu/arcgis/rest/services/oilgas/oilgas/MapServer]];"&gt;http://ruby.kgs.ku.edu/arcgis/rest/services/oilgas/oilgas/MapServer]];&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it can't not execute the delegate protocol&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks~&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Jul 2010 11:14:04 GMT</pubDate>
    <dc:creator>BleumInc</dc:creator>
    <dc:date>2010-07-17T11:14:04Z</dc:date>
    <item>
      <title>how to create a findtaskparameters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-a-findtaskparameters/m-p/74149#M732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;self.findParameters = [[AGSFindParameters alloc] init];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.contains = YES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.layerIds = [NSArray arrayWithObjects:[NSNumber numberWithInt:8],nil];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.searchFields = [NSArray arrayWithObjects:@"OWNER_NAME",nil];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.searchText = @"cline";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.returnGeometry = YES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.findParameters.outSpatialReference = self.mapView.spatialReference;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I create it like this, but it can't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the findtask is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.findTask = [AGSFindTask findTaskWithURL:[NSURL &lt;/SPAN&gt;&lt;A href="http://ruby.kgs.ku.edu/arcgis/rest/services/oilgas/oilgas/MapServer]];"&gt;http://ruby.kgs.ku.edu/arcgis/rest/services/oilgas/oilgas/MapServer]];&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it can't not execute the delegate protocol&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks~&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jul 2010 11:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-a-findtaskparameters/m-p/74149#M732</guid>
      <dc:creator>BleumInc</dc:creator>
      <dc:date>2010-07-17T11:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a findtaskparameters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-a-findtaskparameters/m-p/74150#M733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm also having a problem with the findTaskDelegate not being triggered, I've got the view controller set to be the delegate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting up the findTask:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 [[self.findTask alloc] initWithURL:self.dynamicLayersURL];
 self.findTask.delegate = self;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
- (void)searchBarSearchButtonClicked:(UISearchBar *)theSearchBar
{

 // Get find parameters
 AGSFindParameters *findParam = [[AGSFindParameters alloc] init];
 findParam.contains = YES;
 findParam.layerIds = findLyrIds;
 findParam.returnGeometry = NO;
 findParam.searchFields = findFields;
 findParam.searchText = theSearchBar.text;

 // Execute the find task 
 [self.findTask executeWithParameters:findParam];
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It never sets off didExecuteWithFindResults or didFailWithError, Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-a-findtaskparameters/m-p/74150#M733</guid>
      <dc:creator>AndrewEgleton</dc:creator>
      <dc:date>2021-12-10T22:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a findtaskparameters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-a-findtaskparameters/m-p/74151#M734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, have answered my own question! I should have initialised the FindTask like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;self.findTask = [[AGSFindTask alloc] initWithURL:self.dynamicLayersURL];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps Bleum.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 15:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-a-findtaskparameters/m-p/74151#M734</guid>
      <dc:creator>AndrewEgleton</dc:creator>
      <dc:date>2010-10-06T15:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a findtaskparameters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-a-findtaskparameters/m-p/74152#M735</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;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;self.findTask = [AGSFindTask findTaskWithURL:[NSURL &lt;A href="http://ruby.kgs.ku.edu/arcgis/rest/services/oilgas/oilgas/MapServer]];"&gt;http://ruby.kgs.ku.edu/arcgis/rest/services/oilgas/oilgas/MapServer]];&lt;/A&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.findTask is a retain property right? Otherwise, this won't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, don't forget to set the delegate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;self.findTask.delegate = self;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The object must implement the AGSFindTaskDelegate protocol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Greez&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 14:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-a-findtaskparameters/m-p/74152#M735</guid>
      <dc:creator>MichaelBeck</dc:creator>
      <dc:date>2010-11-12T14:39:44Z</dc:date>
    </item>
  </channel>
</rss>

