<?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: ArcGIS SDK for QT - Sync Direction  in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/arcgis-sdk-for-qt-sync-direction/m-p/797871#M1230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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 can answer this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2019 15:39:53 GMT</pubDate>
    <dc:creator>ErwinSoekianto</dc:creator>
    <dc:date>2019-06-28T15:39:53Z</dc:date>
    <item>
      <title>ArcGIS SDK for QT - Sync Direction</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/arcgis-sdk-for-qt-sync-direction/m-p/797870#M1229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During building a QML app using ArcGIS SDK for QT, I faced a problem synchronizing one of the hosted feature services layers. The application is designed to create mobile geodatabase file, also all data edits done by a user is happening on one layer in this geodatabase, which is later gets synchronized to a hosted feature service on AGOL. In order to start the sync operation, the application create an instance from “&lt;STRONG&gt;SyncGeodatabaseParameters&lt;/STRONG&gt;” class which has a “&lt;STRONG&gt;geodatabaseSyncDirection&lt;/STRONG&gt;” property set to “&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;SyncDirectionUpload&lt;/STRONG&gt;&lt;/SPAN&gt;”. Unlike what I expected, the sync operation is downloading changes took place on hosted feature service from AGOL, instead of just pushing local changes to the AGOL service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have create a pair of apps that demonstrate this case, please find the download link &lt;A href="https://drive.google.com/file/d/1Cv8rgBY5ud5AWN4VXX69oS9nenjAKb2l/view?usp=sharing"&gt;here&lt;/A&gt;. Please unzip the file, then you will find the following:&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;&lt;SPAN style="text-decoration: underline; font-size: 14.0pt;"&gt;Application 1: syncLayerDemo-add: &lt;/SPAN&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;An application that has one layer added to the MapView control, “activity” layer, which is a hosted feature service layer on AGOL.&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;The “Add Record” buttons creates a new feature in a random location around the map center and add it directly to the layer&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/451788_Support-App1.jpg" /&gt;&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;&lt;SPAN style="text-decoration: underline; font-size: 14.0pt;"&gt;Application 2: syncLayerDemo-sync&lt;/SPAN&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;This application creates a local geodatabase file replica from the same hosted feature service used by “Application 1”, and add the “activity” layer to the MapView&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;The “Sync Features” buttons starts the sync operation, and the “activity” layer gets refreshed to show the newly added features&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/451789_Support-App2-geonet.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10.0pt;"&gt;&lt;STRONG&gt;Test Scenario:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="color: black; margin-left: 0in;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Open “Application 1” and “Application 2”&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: black; margin-left: 0in;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Let the applications load&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: black; margin-left: 0in;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;On “Application 1”&lt;/SPAN&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="color: black; margin-left: 0in;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Press on “Add Record” button&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: black; margin-left: 0in;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;A new point feature is added to the map&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="color: black; margin-left: 0in;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;On “Application 2”&lt;/SPAN&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="color: black; margin-left: 0in;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Press on the “Sync Features” button&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: black; margin-left: 0in;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Wait for the sync operation to finish&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10.0pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 12.0pt;"&gt;Expected&lt;/SPAN&gt;: the sync operation pushes local changes from device to AGOL hosted feature service, and &lt;SPAN style="text-decoration: underline;"&gt;not to&lt;/SPAN&gt; download any changes from AGOL hosted feature service to local device&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 12.0pt;"&gt;Actual&lt;/SPAN&gt;: the sync is pushing local changes and also downloading changes from AGOL.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10.0pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Please let me know if you have any idea what might be the reason for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ihab Hassan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 01:26:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/arcgis-sdk-for-qt-sync-direction/m-p/797870#M1229</guid>
      <dc:creator>EhabEl-Masry</dc:creator>
      <dc:date>2019-06-28T01:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS SDK for QT - Sync Direction</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/arcgis-sdk-for-qt-sync-direction/m-p/797871#M1230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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 can answer this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 15:39:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/arcgis-sdk-for-qt-sync-direction/m-p/797871#M1230</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2019-06-28T15:39:53Z</dc:date>
    </item>
  </channel>
</rss>

