Please see the rest info for the service in the attachment. [ATTACH=CONFIG]34823[/ATTACH] In the above screenshot, layer '0' is feature class, layer '3' is the table related to layer '0' by globalid and layer '4' is a standalone table(no relation)Attaching the createReplica REST html page.[ATTACH=CONFIG]34824[/ATTACH]The downloaded database has the data from layer '0', related table layer '3' and standalone table(no relation) layer '4'. Notice the layerQuery for the standalone table(no relation)
This looks like an issue with the hosted service when the dataFormat is SQLite(working fine with JSON). Notified to the server/online team about it. It is working fine with the On-premise Server. Please see the rest info for the service in the attachment. [ATTACH=CONFIG]34825[/ATTACH] In the above screenshot, layer '0' is feature class, layer '1' is another feature class and layer '2' is related to both layer '0'(by globalid) and layer '1'(by user defined field)[ATTACH=CONFIG]34827[/ATTACH] Attaching the createReplica REST html page .[ATTACH=CONFIG]34826[/ATTACH]
Sync enabled feature services are like any other item in your organization content. There are no special privileges, they will honour the organization security settings.
Answer to this question should clear lot of your other questions.You should set a LayerQuery (where clause) on the table when you call create replica to include data from standalone table(if not related by default).http://resources.arcgis.com/en/help/arcgis-rest-api/#/Using_sync/02r3000000rs000000/Click on the screenshot attached:[ATTACH=CONFIG]34811[/ATTACH]
This is not a requirement
This one also should not be a requirement
This should be OK as long as all the datasets are in the service. If the feature class and the 2 stand alone tables are in the service and create replica includes all 3, they will be included
List<Relationship> relations = ((GeodatabaseFeatureTable) gdbFeature.getTable()).getRelationships(); for (Relationship relationship : relations) { ..... long[] objectIds = {gdbFeature.getId()}; RelatedQueryParameters relatedQuery = new RelatedQueryParameters(); relatedQuery.setRelationshipId(relationship.getId()); relatedQuery.setObjectIds(objectIds); .... Map<Long, FeatureResult> relatedFeatures = ((GeodatabaseFeatureTable) gdbFeature .getTable()).queryRelated(relatedQuery, null) .... }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.