<?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: Problems to Add Features in AGSFeatureLayerEditingDelegate in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400532#M3442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Create retain property for feature layer and then try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//in .h file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@property (nonatomic, retain) AGSFeatureLayer *featureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//in .m file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.featureLayer = [AGSFeatureLayer featureServiceLayerWithURL: urlFeatureLayer mode: AGSFeatureLayerModeOnDemand];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.featureLayer.editingDelegate = self;&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>Thu, 30 Aug 2012 20:33:32 GMT</pubDate>
    <dc:creator>NimeshJarecha</dc:creator>
    <dc:date>2012-08-30T20:33:32Z</dc:date>
    <item>
      <title>Problems to Add Features in AGSFeatureLayerEditingDelegate</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400531#M3441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need add geometry to Feature Service, but not working. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My flow is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt;&lt;SPAN&gt; Adopt AGSFeatureLayerEditingDelegate delegate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt;&lt;SPAN&gt; AGSFeatureLayer *featureLayer = [AGSFeatureLayer featureServiceLayerWithURL: urlFeatureLayer mode: AGSFeatureLayerModeOnDemand];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt;&lt;SPAN&gt; featureLayer.editingDelegate = self;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;4.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSMutableDictionary *graphicAttributes = [[NSMutableDictionary alloc] init];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [graphicAttributes setObject:@"EXAMPLE1" forKey:@"FIELD1"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [graphicAttributes setObject:@"EXAMPLE2" forKey:@"FIELD2"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt;5.&lt;/STRONG&gt;&lt;SPAN&gt; AGSGraphic *graphic = [AGSGraphic graphicWithGeometry:selectedMaPoint symbol:nil attributes:graphicAttributes infoTemplateDelegate:self];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt;6.&lt;/STRONG&gt;&lt;SPAN&gt; [featureLayer addFeatures:[NSArray arrayWithObject:graphic]];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;The strange thing is that no delegate is called!&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
- (void)featureLayer:(AGSFeatureLayer *)featureLayer operation:(NSOperation*)op didFeatureEditsWithResults:(AGSFeatureLayerEditResults *)editResults;

- (void)featureLayer:(AGSFeatureLayer *)featureLayer operation:(NSOperation*)op didFailFeatureEditsWithError:(NSError *)error;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 11:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400531#M3441</guid>
      <dc:creator>ViniciusMachuca</dc:creator>
      <dc:date>2012-08-30T11:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problems to Add Features in AGSFeatureLayerEditingDelegate</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400532#M3442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Create retain property for feature layer and then try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//in .h file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@property (nonatomic, retain) AGSFeatureLayer *featureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//in .m file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.featureLayer = [AGSFeatureLayer featureServiceLayerWithURL: urlFeatureLayer mode: AGSFeatureLayerModeOnDemand];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.featureLayer.editingDelegate = self;&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>Thu, 30 Aug 2012 20:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400532#M3442</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-08-30T20:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problems to Add Features in AGSFeatureLayerEditingDelegate</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400533#M3443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also trying to do the exact same steps to add feature to a feature layer. The error I am seeing in the log is &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSJSONRepresentation failed: Error is: NaN is not a valid number in JSON&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 14:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400533#M3443</guid>
      <dc:creator>VIKRANTKRISHNA</dc:creator>
      <dc:date>2012-09-21T14:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problems to Add Features in AGSFeatureLayerEditingDelegate</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400534#M3444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have a valid geometry in JSON?&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>Fri, 21 Sep 2012 19:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400534#M3444</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-09-21T19:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems to Add Features in AGSFeatureLayerEditingDelegate</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400535#M3445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nimesh,&lt;/P&gt;&lt;P&gt;I have created property for feature layer and I'm trying to add feature from query result. But unable to do that.....delegate methods are not getting called. Below is my code. Will you please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Menlo;"&gt;- (&lt;SPAN style="color: #bb2ca2;"&gt;void&lt;/SPAN&gt;)queryTask:(&lt;SPAN style="color: #4f8187;"&gt;AGSQueryTask&lt;/SPAN&gt; *)queryTask operation:(&lt;SPAN style="color: #703daa;"&gt;NSOperation&lt;/SPAN&gt;*)op didExecuteWithFeatureSetResult:(&lt;SPAN style="color: #4f8187;"&gt;AGSFeatureSet&lt;/SPAN&gt; *)featureSet&lt;/P&gt;&lt;P style="font-family: Menlo;"&gt;{&lt;/P&gt;&lt;P style="font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #703daa;"&gt;NSInteger&lt;/SPAN&gt; index;&lt;/P&gt;&lt;P style="font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bb2ca2;"&gt;for&lt;/SPAN&gt; (index = &lt;SPAN style="color: #272ad8;"&gt;0&lt;/SPAN&gt;; index &amp;lt;featureSet.&lt;SPAN style="color: #4f8187;"&gt;features&lt;/SPAN&gt;.&lt;SPAN style="color: #703daa;"&gt;count&lt;/SPAN&gt;; index++)&lt;/P&gt;&lt;P style="font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P style="font-family: Menlo; color: #4f8187;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;AGSSimpleFillSymbol&lt;SPAN style="color: #000000;"&gt; * fillSym = [&lt;/SPAN&gt;AGSSimpleFillSymbol&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;simpleFillSymbol&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Menlo; color: #31595d;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fillSym.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;AGSSimpleFillSymbolStyleSolid&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fillSym.&lt;SPAN style="color: #4f8187;"&gt;color&lt;/SPAN&gt; = [&lt;SPAN style="color: #703daa;"&gt;UIColor&lt;/SPAN&gt; &lt;SPAN style="color: #3d1d81;"&gt;orangeColor&lt;/SPAN&gt;];&lt;/P&gt;&lt;P style="font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #4f8187;"&gt;AGSGraphic&lt;/SPAN&gt; * graphic = [featureSet.&lt;SPAN style="color: #4f8187;"&gt;features&lt;/SPAN&gt; &lt;SPAN style="color: #3d1d81;"&gt;objectAtIndex&lt;/SPAN&gt;: index];&lt;/P&gt;&lt;P style="font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.&lt;SPAN style="color: #4f8187;"&gt;symbol&lt;/SPAN&gt; = fillSym;&lt;/P&gt;&lt;P style="font-family: Menlo; color: #008400;"&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5; color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5; color: #4f8187;"&gt;featureLayer1&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5; color: #31595d;"&gt;addFeatures&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5; color: #272ad8;"&gt;@[&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5;"&gt;graphic&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5; color: #272ad8;"&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-family: Menlo; color: #4f8187;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;featureLayer1&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;refresh&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Menlo; color: #d12f1b;"&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 09:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problems-to-add-features-in/m-p/400535#M3445</guid>
      <dc:creator>HrishikeshPol</dc:creator>
      <dc:date>2015-02-02T09:24:51Z</dc:date>
    </item>
  </channel>
</rss>

