<?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 Why does setAttributeToNullForKey: remove the key from AGSGDBFeature? in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/why-does-setattributetonullforkey-remove-the-key/m-p/705635#M6313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to update an existing record on the client database. &amp;nbsp;The existing&amp;nbsp;record has a uuidtext column with an existing value, and&amp;nbsp;I want to remove that value and set the record's column to null. To accomplish this I am grabbing the original record from the table as an AGSGDBFeature, and then updating the keys using setAttributeToNullForKey:.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have found is that when I send setAttributeToNullForKey: to AGSGDBFeature, the method simply removes the key altogether. &amp;nbsp;In turn, when I&amp;nbsp;send&amp;nbsp;saveFeature:error: to AGSGDBFeatureTable, the missing key means the column is not updated. &amp;nbsp;According to the documentation, setAttributeToNullForKey: should set the key to NSNull, not remove the key altogether. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I remove an existing value from a record?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our SDK version is 10.2.5.&lt;/P&gt;&lt;P&gt;This behavior is consistent across all of our iOS devices and versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2016 15:09:45 GMT</pubDate>
    <dc:creator>WillSmith5</dc:creator>
    <dc:date>2016-09-22T15:09:45Z</dc:date>
    <item>
      <title>Why does setAttributeToNullForKey: remove the key from AGSGDBFeature?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/why-does-setattributetonullforkey-remove-the-key/m-p/705635#M6313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to update an existing record on the client database. &amp;nbsp;The existing&amp;nbsp;record has a uuidtext column with an existing value, and&amp;nbsp;I want to remove that value and set the record's column to null. To accomplish this I am grabbing the original record from the table as an AGSGDBFeature, and then updating the keys using setAttributeToNullForKey:.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have found is that when I send setAttributeToNullForKey: to AGSGDBFeature, the method simply removes the key altogether. &amp;nbsp;In turn, when I&amp;nbsp;send&amp;nbsp;saveFeature:error: to AGSGDBFeatureTable, the missing key means the column is not updated. &amp;nbsp;According to the documentation, setAttributeToNullForKey: should set the key to NSNull, not remove the key altogether. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I remove an existing value from a record?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our SDK version is 10.2.5.&lt;/P&gt;&lt;P&gt;This behavior is consistent across all of our iOS devices and versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 15:09:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/why-does-setattributetonullforkey-remove-the-key/m-p/705635#M6313</guid>
      <dc:creator>WillSmith5</dc:creator>
      <dc:date>2016-09-22T15:09:45Z</dc:date>
    </item>
  </channel>
</rss>

