<?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: write to .geodatabase file in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772545#M491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't tried opening a .geodatabase as a SQLite database, but the file format is the same (I have used a SQLite viewer to view a .geodatabase). You should be able to open the .geodatabase as a SQLite database&amp;nbsp;and execute sql statements. This link should show you how to write to a SQLite database:&amp;nbsp;&lt;A class="link-titled" href="https://doc.qt.io/qt-5/qtquick-localstorage-qmlmodule.html" title="https://doc.qt.io/qt-5/qtquick-localstorage-qmlmodule.html"&gt;Qt Quick Local Storage QML Types | Qt Quick 5.14.0&lt;/A&gt;.&amp;nbsp;I'm not sure if you will be able to write the geometry into the geodatabase like this, but hopefully you can work with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of curiosity, why aren't you using the ArcGIS Runtime to add records to the geodatabase? You should be able to use the addFeature() or addFeatures() methods of the FeatureTable class to add features that you query from your Feature Service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Dec 2019 21:21:32 GMT</pubDate>
    <dc:creator>KeithLarson1</dc:creator>
    <dc:date>2019-12-27T21:21:32Z</dc:date>
    <item>
      <title>write to .geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772543#M489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From my app i can run the below code and it reads my service and puts the points in m my map.&amp;nbsp;&amp;nbsp;But if I leave the page and come back they are gone as they are temporary&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;featureTable0&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;populateFromService&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create a geodatabase file, put that on the mobile device and reference that in my map and that works fine as well...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I read the data from a service and write those records to a .geodatabase file that is on the mobile device.&amp;nbsp; I am doing this outside the sync functionality that comes in examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Delete all records in the Geodatabase File&lt;/P&gt;&lt;P&gt;2. Query the Feature Service&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Write those new records with geometry into my Geodatabase File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2019 16:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772543#M489</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-27T16:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: write to .geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772544#M490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if what you are trying to do with the file geodatabase (outside the sync functionality) is supported, looping in &lt;A href="https://community.esri.com/space/2136"&gt;ArcGIS Runtime SDK for Qt&lt;/A&gt;‌ to see if anyone in this group know the answer to this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2019 20:30:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772544#M490</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2019-12-27T20:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: write to .geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772545#M491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't tried opening a .geodatabase as a SQLite database, but the file format is the same (I have used a SQLite viewer to view a .geodatabase). You should be able to open the .geodatabase as a SQLite database&amp;nbsp;and execute sql statements. This link should show you how to write to a SQLite database:&amp;nbsp;&lt;A class="link-titled" href="https://doc.qt.io/qt-5/qtquick-localstorage-qmlmodule.html" title="https://doc.qt.io/qt-5/qtquick-localstorage-qmlmodule.html"&gt;Qt Quick Local Storage QML Types | Qt Quick 5.14.0&lt;/A&gt;.&amp;nbsp;I'm not sure if you will be able to write the geometry into the geodatabase like this, but hopefully you can work with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of curiosity, why aren't you using the ArcGIS Runtime to add records to the geodatabase? You should be able to use the addFeature() or addFeatures() methods of the FeatureTable class to add features that you query from your Feature Service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2019 21:21:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772545#M491</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2019-12-27T21:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: write to .geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772546#M492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this require additional licencing above a basic licence?....I don't have 40k laying around to simply populate a geodatabase on a mobile device.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2020 14:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772546#M492</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2020-01-03T14:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: write to .geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772547#M493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like generating a geodatabase is possible with the Lite license and syncing changes is avaialable with a Basic license. I'm using this as reference:&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/appstudio/extend-apps/licenceyourapp.htm" title="https://doc.arcgis.com/en/appstudio/extend-apps/licenceyourapp.htm"&gt;License your app—AppStudio for ArcGIS | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772547#M493</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2020-01-03T16:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: write to .geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772548#M494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK it appears that you can (with a lite license) create and download download updates....&lt;/P&gt;&lt;P&gt;I see there is a "Generate Geodatabase" from the samples in AppStudio&lt;/P&gt;&lt;P&gt;I&amp;nbsp;can populate from Service as stated above but this is ONLY temporary and gets removed if you leave the page.&lt;/P&gt;&lt;P&gt;I can use the Generate Geodatabase as mentioned above but creates a new geodatabase every time you hit the button...dosent look like that option works for syncing to the same geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of an example out there that looks for a Geodatabase, if not creates one, and then allows the user to store this geodatabase when they leave the page or app.&amp;nbsp; But also allows then to click a button and update/sync any new features that were created since they last downloaded it.&amp;nbsp; (NOT creating a new geodatabase each time?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="color: #4c4c4c; background-color: #ffffff; font-weight: 300; font-size: 0.9375rem; margin-left: 0.775rem; margin-bottom: 1.55rem;"&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;Generate a mobile geodatabase from a sync-enabled feature service&lt;/LI&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;Download updates from a sync-enabled feature services to a mobile geodatabase&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2020 17:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772548#M494</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2020-01-03T17:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: write to .geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772549#M495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess my question is am I syncing or simply removing and adding all the points to the geodatabase each time.&lt;/P&gt;&lt;P&gt;I assume this does not bring down the attributes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to wrap my head around this....any examples?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2020 17:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772549#M495</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2020-01-03T17:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: write to .geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772550#M496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I could find examples on these two areas of interest I think I would be good to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how I am envisioning this:&lt;/P&gt;&lt;P&gt;1. User clicks a button to download/sync&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a. If there it downloads and syncs new data&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b. if not there it creates a geodatabase file and then downloads and syncs&lt;/P&gt;&lt;P&gt;2. Repeat each time button is clicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/477388_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2020 18:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/write-to-geodatabase-file/m-p/772550#M496</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2020-01-03T18:27:13Z</dc:date>
    </item>
  </channel>
</rss>

