This function retrieves a list of branch version names from the server. This AutoLISP function requires you to be signed in to access the layer in order to retrieve the names.
Syntax
(esri_webfeaturelayer_branchNames flname)
Arguments
- flname | string | required | An existing web feature layer name in the drawing.
Example usage
Attempt to retrieve a list of the branch version names associated with the Distribution web feature layer. (esri_webfeaturelayer_branchNames "Distribution")
Result example usage
Returns a list of branch version names associated with the Distribution web feature layer as a list of strings.
("sde.DEFAULT" "emil9669.TestVersion" "editor01.private" "editor01.public" "editor01.protected" "ruser.testfromUI"
Return values
- If successful, returns a list of branch version names as strings.
- If failed, returns a list with the first value of nil and then an associated list containing the key value "Error" and an associated error message as a string: (nil ("Error" . "<message>"))
Failed return values
A failed return value can occur for any of the following reasons:
- (nil ("Error" . "No connected web feature layers found."))
No connected web feature layers found.
- (nil ("Error" . "Layer does not support branch versions."))
Layer does not support branch version.
- (nil ("Error" . "Missing required argument."))
The required argument is not supplied.