<?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: offlinemaptask - taking tables offline and setting attribute queries in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625489#M3152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, all the layers(feature layers, base layers and tables) are coming from a web map.&lt;/P&gt;&lt;P&gt;All the layers and tables work correctly in online status(web map load using PortalItem). But, when trying to download mmpk with default Parameters, it shows an error in job messages like above.&lt;/P&gt;&lt;P&gt;Even If there is an error in job messages, the download will proceed according to continueOnErrors value is true by default. But, downloaded mmpk only has base layers and feature layers from a web map. (both of the layers works well)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2019 09:06:32 GMT</pubDate>
    <dc:creator>SeanKim</dc:creator>
    <dc:date>2019-09-18T09:06:32Z</dc:date>
    <item>
      <title>offlinemaptask - taking tables offline and setting attribute queries</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625485#M3148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using AppStudio (v4.0, so runtime v100.6), and trying to take a web map offline using OfflineMapTask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the web map there are two plain tables (i.e. non-spatial tables). Neither of these have direct database relationships defined with any other spatial layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though the tables exist in the web map, they never seem to appear in the offline data at all. In the web map I have tried having no definition expression and also manually setting one. GenerateOfflineMapParameters object has a property called "definitionExpressionFilterEnabled" which is true by default, plus one called "destinationTableRowFilter" which I tried setting to &lt;SPAN style="color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Enums.DestinationTableRowFilterAll (0)&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; but that didn't seem to make any difference either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can't seem to get the table offline at all. But, further to that, I want to be able to define an attribute query on them before I take them offline. For one table, I want ALL records to be taken offline, but for the other table I want the user in the app to type in a particular identifier, and then set a query on that table so only records where an id field matches that id be taken offline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the old 10.2.6 runtime, I could achieve this, using GeodatabaseSyncTask.generateGeodatabase(...) which took as a parameter a GenerateGeodatabaseParameters object which had a "layerQueries" property which was a list of objects of which one property was a where clause. I can't seem to find the equivalent functionality in v100.x, although obviously the platform supports the concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on the right workflow? Or does anyone know of any samples that already show this workflow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 04:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625485#M3148</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-09-12T04:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: offlinemaptask - taking tables offline and setting attribute queries</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625486#M3149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a similar GeodatabaseSyncTask for the 100.X series - see&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geodatabasesynctask.html" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geodatabasesynctask.html"&gt;GeodatabaseSyncTask QML Type | ArcGIS for Developers&lt;/A&gt;. The parameters type (&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-syncgeodatabaseparameters.html" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-syncgeodatabaseparameters.html"&gt;SyncGeodatabaseParameters QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;) lets you define layerOptions as before, so hopefully that should give you what you need. This sample should give you a idea of how to work with the API:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_QMLSamples/Features/GenerateGeodatabase" title="https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_QMLSamples/Features/GenerateGeodatabase"&gt;arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_QMLSamples/Features/GenerateGeodatabase at master · Esri/arcgis-runtime-sam…&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of the OfflineMapTask, I believe the expected behavior is that the non-spatial tables should be taken offline. One thing to check is that the feature service meets the requirements to be taken offline - see&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/guide/work-offline.htm" title="https://developers.arcgis.com/qt/latest/qml/guide/work-offline.htm"&gt;Work offline—ArcGIS Runtime SDK for Qt | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also try logging the job messages after you have attempted to take the map offline - that could help identify why those tables have been skipped. If you print the Job's json that gives even more details since it will output the information for every sub-job (e.g. taking inddividual layers/tables offline).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps - let me know how you get on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 08:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625486#M3149</guid>
      <dc:creator>LukeSmallwood</dc:creator>
      <dc:date>2019-09-12T08:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: offlinemaptask - taking tables offline and setting attribute queries</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625487#M3150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am Sean working with Paul.&lt;/P&gt;&lt;P&gt;According to your guidance, I printed job's JSON messages and here are the details. (cut from entire messages)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "isServerMessage": false,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "message": "Online table: Load error. DisplayName: *MASKED_NAME* Common::Error: Job error 6 Illegal state. Unable to retrieve feature service information from *MASKED_URL*.",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "severity": "warning",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; "timestamp": 1568599518573&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables can load under&amp;nbsp;online status with the same login credential. So, it doesn't look like a permission problem. All other feature layers work fine whether is online or offline(map download).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 02:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625487#M3150</guid>
      <dc:creator>SeanKim</dc:creator>
      <dc:date>2019-09-16T02:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: offlinemaptask - taking tables offline and setting attribute queries</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625488#M3151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean - thanks for looking into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the tables part of the same feature service as other layers which do work correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 08:35:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625488#M3151</guid>
      <dc:creator>LukeSmallwood</dc:creator>
      <dc:date>2019-09-18T08:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: offlinemaptask - taking tables offline and setting attribute queries</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625489#M3152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, all the layers(feature layers, base layers and tables) are coming from a web map.&lt;/P&gt;&lt;P&gt;All the layers and tables work correctly in online status(web map load using PortalItem). But, when trying to download mmpk with default Parameters, it shows an error in job messages like above.&lt;/P&gt;&lt;P&gt;Even If there is an error in job messages, the download will proceed according to continueOnErrors value is true by default. But, downloaded mmpk only has base layers and feature layers from a web map. (both of the layers works well)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 09:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625489#M3152</guid>
      <dc:creator>SeanKim</dc:creator>
      <dc:date>2019-09-18T09:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: offlinemaptask - taking tables offline and setting attribute queries</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625490#M3153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean - did you manage to resolve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've seen a similar sounding issue in another post (&lt;A href="https://community.esri.com/message/886838-offline-map-does-not-include-tables"&gt;https://community.esri.com/message/886838-offline-map-does-not-include-tables&lt;/A&gt;&amp;nbsp;) that turned out to be because of a duplicate "Creator" field in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 08:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625490#M3153</guid>
      <dc:creator>LukeSmallwood</dc:creator>
      <dc:date>2019-10-25T08:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: offlinemaptask - taking tables offline and setting attribute queries</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625491#M3154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Sorry for late. We have&amp;nbsp;changed the table to a spatial one.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Thanks for your comment.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2019 01:46:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offlinemaptask-taking-tables-offline-and-setting/m-p/625491#M3154</guid>
      <dc:creator>SeanKim</dc:creator>
      <dc:date>2019-11-01T01:46:39Z</dc:date>
    </item>
  </channel>
</rss>

