This function will verify if a web feature layer supports attachments by returning a list of true, or a list of false and a message if it does not.
Syntax
(esri_webfeaturelayer_supportsAttachment flname)
Arguments
- flname | string | required | An existing web feature layer name in the drawing.
Example usage 1
Evaluate whether the web feature layer named "DamageAssessment" supports file attachments.(esri_webfeaturelayer_supportsAttachment "DamageAssessment")
Result example usage 1
The feature layer does support attachments and returns a list of true:
(T)
Example usage 2
Evaluate whether the web feature layer named "Shelters" supports file attachments.(esri_webfeaturelayer_supportsAttachment "Shelters")
Result example usage 2
An error is returned because the web feature layer does not support attachments:
(nil ("Error" . "Layer does not support attachments"))
Return values
- If successful, returns a list of true: (T)
- 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" . "Missing required
argument."))
The required argument is not supplied.
- (nil ("Error" . "Web feature layer not
found."))
The specified web feature layer value is not a valid web feature layer in the drawing.
- (nil ("Error" . "No connected web feature
layers found."))
The network connection to the web feature layer was lost.
- (nil ("Error" . "Layer does not support
attachments"))
The specified web feature layer does not support attachments.