<?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: Adding features to local geodatabase id of new feature = -1 on iOS and Android in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860924#M3029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane&lt;/P&gt;&lt;P&gt;first thing you could do is place a bit of text on the screen bound to the property of the geodatabase that says whether it is valid or not - that will help you know when you fire up on android/ios devices whether it's finding the geodatabase or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re defining paths, I ended up using AppFramework.userHomeFolder.path as the base under which seems to work. Not sure if there is a better practice or alternatives - if anyone knows then would be good to find out.&lt;/P&gt;&lt;P&gt;The test for windows is optional, just means you can place it where you want on a pc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;property&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;apppath&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #0055af;"&gt;Qt&lt;/SPAN&gt;.platform.os&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;===&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"windows"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;?&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"c:/examplefolder"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;AppFramework&lt;/SPAN&gt;.userHomeFolder.path;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;property&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;gdbpath&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #000000;"&gt;apppath&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"/gdb"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;etc...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 20:44:27 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2016-04-14T20:44:27Z</dc:date>
    <item>
      <title>Adding features to local geodatabase id of new feature = -1 on iOS and Android</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860923#M3028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have built a custom version of the quick report app with the ability to store and add features offline.&amp;nbsp; It works perfectly on windows using appstudio player from within qt creator.&amp;nbsp; However when I use the appstudio player on either iOS and Android the features are not created and therefor there is nothing to sync.&amp;nbsp; I think that the app is creating the geodatabase correctly, but when I add the feature to the local geodatabase the new feature id reported by the addFeature method on the geodatabase says that the id is -1.&amp;nbsp; The path that I am defining to the local geodatabase is &lt;SPAN style="color: #008000;"&gt;"~/ArcGIS/Runtime/Data/PigTest.geodatabase".&amp;nbsp; Should I be storing the local geodatabase in a different location? Any help or insight would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;Shane Feirer&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 20:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860923#M3028</guid>
      <dc:creator>ShaneFeirer</dc:creator>
      <dc:date>2016-04-14T20:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding features to local geodatabase id of new feature = -1 on iOS and Android</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860924#M3029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane&lt;/P&gt;&lt;P&gt;first thing you could do is place a bit of text on the screen bound to the property of the geodatabase that says whether it is valid or not - that will help you know when you fire up on android/ios devices whether it's finding the geodatabase or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re defining paths, I ended up using AppFramework.userHomeFolder.path as the base under which seems to work. Not sure if there is a better practice or alternatives - if anyone knows then would be good to find out.&lt;/P&gt;&lt;P&gt;The test for windows is optional, just means you can place it where you want on a pc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;property&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;apppath&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #0055af;"&gt;Qt&lt;/SPAN&gt;.platform.os&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;===&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"windows"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;?&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"c:/examplefolder"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;AppFramework&lt;/SPAN&gt;.userHomeFolder.path;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;property&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;gdbpath&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #000000;"&gt;apppath&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"/gdb"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;etc...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 20:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860924#M3029</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-04-14T20:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding features to local geodatabase id of new feature = -1 on iOS and Android</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860925#M3030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shane,&lt;/P&gt;&lt;P&gt;for local geodatabase editing the app needs to be licensed at Standard level (see here). Could this be the issue? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One quick test you could try is to run it from the AppStudio Player app (not the dev./Qt Creator edition; instead use the same Player App you test with on iOS and Android) on your Windows computer and see if it works then. Running it through AppStudio's Qt Creator sets your license level automatically at Developer I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:24:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860925#M3030</guid>
      <dc:creator>TobiasFimpel1</dc:creator>
      <dc:date>2016-04-14T21:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding features to local geodatabase id of new feature = -1 on iOS and Android</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860926#M3031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is pretty much expected behavior.&amp;nbsp; As far as I can tell data added in a checkout replica is populated with a temp ID until it is sync'd with ArcGIS Server.&amp;nbsp; Just another reason you shouldn't rely on ObjectID for anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 23:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860926#M3031</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2016-04-14T23:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding features to local geodatabase id of new feature = -1 on iOS and Android</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860927#M3032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the comments.&amp;nbsp; I will give them a try and let you all know what worked.&amp;nbsp; A related question, after you declare a geodatabase {path: xxxxx} how to you undeclare the geodatabase and remove the lock that is placed on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 23:25:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/adding-features-to-local-geodatabase-id-of-new/m-p/860927#M3032</guid>
      <dc:creator>ShaneFeirer</dc:creator>
      <dc:date>2016-04-15T23:25:29Z</dc:date>
    </item>
  </channel>
</rss>

