Hi,
I'm trying to create an AGSFeatureTableLayer from a AGSFeatureServiceTable for online editing, and I'm receiving an 'Invalid JSON' error in the AGSLayerDeletgate -didFailToLoadWithError(). It's hard to tell what could be the problem. The layer I'm trying to build is a non-spatial table layer.
Does anyone have insight as to what this error could mean?
Thanks,
Colin
Note:
I've successfully created an AGSFeatureTableLayer for the spatial feature service, with no problems.
Solved! Go to Solution.
Colin,
There are a few features that are not currently supported by AGSFeatureServiceTable including online querying and editing for non-spatial tables. It is recommended to use AGSFeatureLayer instead.
This AGSFeatureLayer model provides additional capabilities that are currently not supported by the AGSGDBFeatureServiceTable, including the ability to:
- Query and edit layers created from nonspatial tables (as opposed to spatial layers) in a feature service
- Query the related tables of a service layer
- Track edits and control editing privileges on a per-user basis
- View and work with time-aware layers and services
- View and work with versioned layers and services
Related doc here
Hope this helps
Thanks,
Suganya
Colin,
There are a few features that are not currently supported by AGSFeatureServiceTable including online querying and editing for non-spatial tables. It is recommended to use AGSFeatureLayer instead.
This AGSFeatureLayer model provides additional capabilities that are currently not supported by the AGSGDBFeatureServiceTable, including the ability to:
- Query and edit layers created from nonspatial tables (as opposed to spatial layers) in a feature service
- Query the related tables of a service layer
- Track edits and control editing privileges on a per-user basis
- View and work with time-aware layers and services
- View and work with versioned layers and services
Related doc here
Hope this helps
Thanks,
Suganya
Ahh ok, I missed this in the docs. Thanks! I'll try this workflow out.