I have a project that makes use of multiple GDB versions that I use for editing. My mapper also has an identify tool, and as expected it returns the identify results of the default version (default SDE). I saw in the docs that one could use the options property to specify the gdbVersion. So I wrote the following line:
identifyTask = new IdentifyTask(systemURL, versionName);
But the identify is still returning the results from the default SDE version. Does anyone have any experience with this?
Thanks, Naci
Solved! Go to Solution.
Figured it out by some wild guess. Passed the following JSON object (not just the string) and voila.
{'gdbVersion': 'sde.' + sysName + 'Editor'}
Hey ESRI support, someone should fix the JS documentation.
Naci,
Are you passing the version name as a string?
Yes Robert, versionName holds a string value.
What are you passing? It is expecting a value like this "sde.USER1"
This is exactly what I am passing. And I checked the string against the list of versions in the database.
Naci,
That is what is suppose to work. You should call esri tech support.
Figured it out by some wild guess. Passed the following JSON object (not just the string) and voila.
{'gdbVersion': 'sde.' + sysName + 'Editor'}
Hey ESRI support, someone should fix the JS documentation.