| Package | com.esri.ags.tasks |
| Class | public class FeatureLayerTask |
| Inheritance | FeatureLayerTask BaseTask flash.events.EventDispatcher |
| Since : | ArcGIS API for Flex 2.3 |
| Method | Defined By | ||
|---|---|---|---|
FeatureLayerTask(url:String = null)
Creates a new FeatureLayerTask object. | FeatureLayerTask | ||
addAttachment(objectId:Number, data:ByteArray, name:String, contentType:String = null, responder:IResponder = null):AsyncToken
Add attachment to a feature (using its ObjectID). | FeatureLayerTask | ||
applyEdits(adds:Array, updates:Array, deletes:Array, objectIdField:String, responder:IResponder = null):AsyncToken
Saves edits on the server. | FeatureLayerTask | ||
deleteAttachments(objectId:Number, attachmentIds:Array, responder:IResponder = null):AsyncToken
Delete one or more attachments for a feature. | FeatureLayerTask | ||
queryAttachmentInfos(objectId:Number, responder:IResponder = null):AsyncToken
Information about attachment(s) for a specific ObjectID. | FeatureLayerTask | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when an addAttachment operation successfully completes. | FeatureLayerTask | |||
| Dispatched when a deleteAttachments operation successfully completes. | FeatureLayerTask | |||
| Dispatched when an applyEdits operation successfully completes. | FeatureLayerTask | |||
| Dispatched when an operation fails. | FeatureLayerTask | |||
| Dispatched when a queryAttachmentInfos operation successfully completes. | FeatureLayerTask | |||
| FeatureLayerTask | () | Constructor |
public function FeatureLayerTask(url:String = null)Creates a new FeatureLayerTask object.
Parametersurl:String (default = null) — URL to the ArcGIS Server REST resource that represents a layer in a feature service.
|
| addAttachment | () | method |
public function addAttachment(objectId:Number, data:ByteArray, name:String, contentType:String = null, responder:IResponder = null):AsyncTokenAdd attachment to a feature (using its ObjectID).
Parameters
objectId:Number — The ObjectID.
| |
data:ByteArray — The byte array of the attachment.
| |
name:String — The name of the attachment
| |
contentType:String (default = null) — If not set, the name is checked for one of (avi, csv, doc, docx, f4v, flv, gif, htm, html, jpeg, jpg, mov, mpeg, mpg, pdf, png, ppt, pptx, swf, tif, txt, xls, xlsx, xml, zip), and if no match is found, the contentType is set to application/octet-stream.
| |
responder:IResponder (default = null) — The responder to call on result or fault.
The result function will be given a FeatureEditResult instance.
|
AsyncToken —
|
See also
| applyEdits | () | method |
public function applyEdits(adds:Array, updates:Array, deletes:Array, objectIdField:String, responder:IResponder = null):AsyncTokenSaves edits on the server.
Parameters
adds:Array — Array of features to add to the layer in the feature service.
| |
updates:Array — Array of features to modify. Must have valid objectId.
| |
deletes:Array — Array of features to delete. Must have valid objectId.
| |
objectIdField:String — Required if deletes is not empty.
| |
responder:IResponder (default = null) — The responder to call on result or fault.
The result function will be given a FeatureEditResults instance.
|
AsyncToken —
|
See also
| deleteAttachments | () | method |
public function deleteAttachments(objectId:Number, attachmentIds:Array, responder:IResponder = null):AsyncTokenDelete one or more attachments for a feature.
Parameters
objectId:Number — The ObjectID.
| |
attachmentIds:Array — The array of attachment IDs.
| |
responder:IResponder (default = null) — The responder to call on result or fault.
The result function will be given an Array of FeatureEditResult instances.
|
AsyncToken —
|
See also
| queryAttachmentInfos | () | method |
public function queryAttachmentInfos(objectId:Number, responder:IResponder = null):AsyncTokenInformation about attachment(s) for a specific ObjectID. Used to find out if a feature has attachments.
Parameters
objectId:Number — The ObjectID.
| |
responder:IResponder (default = null) — The responder to call on result or fault.
The result function will be given an Array of AttachmentInfo instances.
|
AsyncToken —
|
See also
| addAttachmentComplete | Event |
com.esri.ags.events.AttachmentEventcom.esri.ags.events.AttachmentEvent.ADD_ATTACHMENT_COMPLETEDispatched when an addAttachment operation successfully completes.
Defines the value of thetype property of the event object for a addAttachmentComplete event.
| deleteAttachmentsComplete | Event |
com.esri.ags.events.AttachmentEventcom.esri.ags.events.AttachmentEvent.DELETE_ATTACHMENTS_COMPLETEDispatched when a deleteAttachments operation successfully completes.
Defines the value of thetype property of the event object for a deleteAttachmentsComplete event.
| editsComplete | Event |
com.esri.ags.events.FeatureLayerEventcom.esri.ags.events.FeatureLayerEvent.EDITS_COMPLETEDispatched when an applyEdits operation successfully completes.
Defines the value of thetype property of the event object for a editsComplete event.
| fault | Event |
mx.rpc.events.FaultEventmx.rpc.events.FaultEvent.FAULTDispatched when an operation fails.
| queryAttachmentInfosComplete | Event |
com.esri.ags.events.AttachmentEventcom.esri.ags.events.AttachmentEvent.QUERY_ATTACHMENT_INFOS_COMPLETEDispatched when a queryAttachmentInfos operation successfully completes.
Defines the value of thetype property of the event object for a queryAttachmentInfosComplete event.