This function will post updated changes on the specified web feature layer and return a list of true (T) if successful. Once changes are posted, the layer will be redrawn to include all changes within the current project area. This function allows you to programmatically synchronize changes.
Drawings that were previously saved will be saved after updating the web feature layer. The process of synchronizing a feature layer will update the feature layer source with geometric and attribute edits made in the drawing. All of the feature entities on the web feature layer's CAD layer will be erased and then features from the server within the project area will be added back to the drawing, including all edits from other sources.
Syntax
(esri_webfeaturelayer_commit flname)
Arguments
- flname | string | required | An existing web feature layer name in the drawing.
Example usage
Attempt to commit the edits for the Shelters web feature layer in the current drawing. (esri_webfeaturelayer_commit "Shelters")
Result example usage
The feature layer is updated and redrawn, and the function returns a list of true:
(T)
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>"))
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.