<?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: Data from Service in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/data-from-service/m-p/823602#M1994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe populateFromService will store a temporary geodatabase in your Temp folder (likely C:\Temp), but as you said, it is only temporary, so it will go away. If you want to download data, you probably want to use a GeodatabaseSyncTask, which you can use to create a job with given parameters. There is a sample application in AppStudio called "Generate Geodatabase" that should be a good reference for how to download your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Dec 2019 20:34:32 GMT</pubDate>
    <dc:creator>KeithLarson1</dc:creator>
    <dc:date>2019-12-20T20:34:32Z</dc:date>
    <item>
      <title>Data from Service</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/data-from-service/m-p/823601#M1993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to retrieve data from a Service so I can take my application offline.&amp;nbsp; I have this working to some degree but confused on a few things.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I am using the populateFromService Method to get my data and display it in the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-servicefeaturetable.html" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-servicefeaturetable.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ServiceFeatureTable QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This supposedly creates a local database and stores the data there?????&lt;/P&gt;&lt;P&gt;*&amp;nbsp; I can view the datasets in my map&lt;/P&gt;&lt;P&gt;*&amp;nbsp; I can select and return data from those locations&lt;/P&gt;&lt;P&gt;SO everything is great there......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problems / Issues:&lt;/P&gt;&lt;P&gt;If&amp;nbsp;I leave the page and then come back to it the data is gone.&amp;nbsp; This requires me to sync back up with the data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that if I am off grid I cannot do this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where is this geodatabase being created?&lt;/P&gt;&lt;P&gt;Is it being deleted once I leave the page?&lt;/P&gt;&lt;P&gt;Is there a way to store it somewhere else?&lt;/P&gt;&lt;P&gt;Can I update the data in this database by re-syncing at another time?&lt;/P&gt;&lt;P&gt;Are there other options for reading and syncing the data from a service into 3 different feature classes/Tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wants:&lt;/P&gt;&lt;P&gt;I would like this to be a permanent geodatabase on the users phone that gets updated via a button.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a different import/sync procedure that is more permanent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am doing this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;FeatureLayer &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
     id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; featureLayerBoating

     ServiceFeatureTable &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; featureTable0
          url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"https://vvvv.vvvv.vvvv.gov/arcgis/rest/services/Projects/vvvv/FeatureServer/2"&lt;/SPAN&gt;

     featureRequestMode&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureRequestModeManualCache

     onPopulateFromServiceStatusChanged&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
         &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;populateFromServiceStatus &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; Enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;TaskStatusCompleted&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
             &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;populateFromServiceResult&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;iterator&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;hasNext&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                   &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
             &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
             &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; count &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; populateFromServiceResult&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;iterator&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
             console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Retrieved %1 features"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;arg&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;count&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="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="punctuation token"&gt;}&lt;/SPAN&gt;


QueryParameters &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; params
    whereClause&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"1 = 1"&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// SNIP&lt;/SPAN&gt;

onClicked&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;checked &lt;SPAN class="operator 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;
        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="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;checked &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"false"&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="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"error"&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="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// SNIP‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:47:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/data-from-service/m-p/823601#M1993</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T09:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data from Service</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/data-from-service/m-p/823602#M1994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe populateFromService will store a temporary geodatabase in your Temp folder (likely C:\Temp), but as you said, it is only temporary, so it will go away. If you want to download data, you probably want to use a GeodatabaseSyncTask, which you can use to create a job with given parameters. There is a sample application in AppStudio called "Generate Geodatabase" that should be a good reference for how to download your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 20:34:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/data-from-service/m-p/823602#M1994</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2019-12-20T20:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data from Service</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/data-from-service/m-p/823603#M1995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK thanks...I will look into that...&lt;/P&gt;&lt;P&gt;Does that have logic to download additional features if you want to sync any new data?&amp;nbsp; Where it just downloads the new features that were added since the last pull?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 22:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/data-from-service/m-p/823603#M1995</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-20T22:10:42Z</dc:date>
    </item>
  </channel>
</rss>

