I'd like to check to see which version has been specified for a feature layer, but haven't found the property or method to identify this. Does anyone know where it is?
Thanks
Tim
Solved! Go to Solution.
the featureLayer has gdbVersion property. But, it would be undefined if you have not used setGDBVersion()
the featureLayer has gdbVersion property. But, it would be undefined if you have not used setGDBVersion()
That works perfectly, and I see it populated in the console once I've run setGDBVersion().
I notice it's not in the documentation at https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#properties
I'm going to try using
delete theLayer.gdbVersion;
to remove the set version property and return it back to the default when necessary. I assume since it doesn't exist in the original state that having it there an null would cause problems.
No, deleting the gdbVersion will not be useful. You need to use setGDBVersion method only. As there are dependent properties / activities that needs to be done.
theLayer.setGDBVersion(null);
This will work.
The missing (from the docs) gdbVersion property will be doc'd in the next release (3.14) - for both FeatureLayer and ArcGISDynamicMapServiceLayer. Thank you for pointing out the missing doc.