<?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: addFeature, applyEdits, deleteFeature issue in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/addfeature-applyedits-deletefeature-issue/m-p/14673#M59</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of things to try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) After you create the Feature and add it to the table, call refresh() on the Feature -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-feature.html" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-feature.html"&gt;Feature QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If you want to clear out your edits before you've applied, you could call undoLocalEdits() -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-servicefeaturetable.html#undoLocalEdits-method" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-servicefeaturetable.html#undoLocalEdits-method"&gt;ServiceFeatureTable QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2019 20:18:00 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2019-09-23T20:18:00Z</dc:date>
    <item>
      <title>addFeature, applyEdits, deleteFeature issue</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/addfeature-applyedits-deletefeature-issue/m-p/14672#M58</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having an issue with adding a new feature, applyEdits, then trying to delete the feature right away. It appears that when you add a feature it assigns a negative objectID to that feature, and when you applyEdits it assigns a real unique objectID, so when you use the initial feature object you created, or the one from addedFeatures before applyEdits it errors when you try to delete using that&amp;nbsp;&lt;SPAN&gt;initial feature object. This is the error "Item not found in the database. (Table, domain, relationship class, etc.), addtl: The following features were not found: [-10] (2019-09-20 16:21:26:957). Apparently -10 is the objectID in the local featureTable still even after applyEdits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is the correct way to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 21:42:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/addfeature-applyedits-deletefeature-issue/m-p/14672#M58</guid>
      <dc:creator>MarkHolm</dc:creator>
      <dc:date>2019-09-20T21:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: addFeature, applyEdits, deleteFeature issue</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/addfeature-applyedits-deletefeature-issue/m-p/14673#M59</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of things to try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) After you create the Feature and add it to the table, call refresh() on the Feature -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-feature.html" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-feature.html"&gt;Feature QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If you want to clear out your edits before you've applied, you could call undoLocalEdits() -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-servicefeaturetable.html#undoLocalEdits-method" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-servicefeaturetable.html#undoLocalEdits-method"&gt;ServiceFeatureTable QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2019 20:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/addfeature-applyedits-deletefeature-issue/m-p/14673#M59</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2019-09-23T20:18:00Z</dc:date>
    </item>
  </channel>
</rss>

