Hi.
I'm using AppStudio (v4.0, so runtime v100.6), and trying to take a web map offline using OfflineMapTask.
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.
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 Enums.DestinationTableRowFilterAll (0) but that didn't seem to make any difference either.
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.
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.
Any suggestions on the right workflow? Or does anyone know of any samples that already show this workflow?
Thanks,
-Paul