Take standalone table offline
Hi,
Is there a way to take a standalone table, published through a FeatureService, offline?
I don't see a way to add a table service to the site directly, so I tried with a custom module and the FeatureLayerSetCacheSpec command. However, this command takes a layer ID from the site config as parameter. Since the site does not contain the table, an ID is not available.
Is there a way around this, or should I do this 'manually'? The data is read-only, so it would probably not to hard to just listen to the FeatureLayerModuleSyncStartedEvent event, and then use a QueryTask to download data. I'd prefer some kind of standard methods though. If I were to go this way, what would be the best method to save a featureset to the app.store? Is it as simple as this.app.store.set("MyData", featureSet)?
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
0 Kommentare