This page describes an older version, please see latest API at http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/DetailsTask.html.
Packagecom.esri.ags.tasks
Classpublic class DetailsTask
InheritanceDetailsTask Inheritance BaseTask Inheritance flash.events.EventDispatcher

Loads the layer or table details from a map service or feature service.



Public Properties
 PropertyDefined By
 InheritedautoNormalize : Boolean
If true, normalizes the geometries across the central meridian.
BaseTask
 Inheritedconcurrency : String
Value that indicates how to handle multiple calls to the same task.
BaseTask
 InheriteddisableClientCaching : Boolean
If true, adds a timestamp parameter ("_ts") to the REST request to prevent the request from being loaded from the browser's cache.
BaseTask
  getAllDetailsLastResult : AllDetails
[read-only] The result returned from the last call to the getAllDetails function.
DetailsTask
  getLayerDetailsLastResult : LayerDetails
[read-only] The result returned from the last call to the getDetails function when the id is for a layer.
DetailsTask
  getTableDetailsLastResult : TableDetails
[read-only] The result returned from the last call to the getDetails function when the id is for a table.
DetailsTask
 Inheritedmethod : String
URL request method to use.
BaseTask
 InheritedproxyURL : String
The URL to proxy the request through.
BaseTask
 InheritedrequestTimeout : int
The request timeout in seconds.
BaseTask
 InheritedshowBusyCursor : Boolean
If true, a busy cursor is displayed while a service is executing.
BaseTask
 Inheritedtoken : String
Token for accessing a secure task.
BaseTask
 Inheritedurl : String
URL of the task.
BaseTask
Public Methods
 MethodDefined By
  
DetailsTask(url:String = null)
Creates a new DetailsTask object.
DetailsTask
  
getAllDetails(responder:IResponder = null):AsyncToken
Gets the detailed information for all the ArcGIS layers and tables in a Map Service.
DetailsTask
  
getDetails(layerOrTableId:Number, responder:IResponder = null):AsyncToken
Gets the detailed information for an ArcGIS layer or table.
DetailsTask
Protected Methods
 MethodDefined By
 Inherited
sendURLVariables(urlSuffix:String, urlVariables:URLVariables, responder:IResponder, operation:Function):AsyncToken
Sends an HTTP request.
BaseTask
Events
 Event Summary Defined By
  Dispatched when a DetailsTask fails.DetailsTask
  Dispatched when an getAllDetails operation successfully completes.DetailsTask
  Dispatched when an getDetails operation successfully completes.DetailsTask
Property Detail
getAllDetailsLastResultproperty
getAllDetailsLastResult:AllDetails  [read-only]

The result returned from the last call to the getAllDetails function.

This property can be used as the source for data binding.


Implementation
    public function get getAllDetailsLastResult():AllDetails
getLayerDetailsLastResultproperty 
getLayerDetailsLastResult:LayerDetails  [read-only]

The result returned from the last call to the getDetails function when the id is for a layer.

This property can be used as the source for data binding.


Implementation
    public function get getLayerDetailsLastResult():LayerDetails
getTableDetailsLastResultproperty 
getTableDetailsLastResult:TableDetails  [read-only]

The result returned from the last call to the getDetails function when the id is for a table.

This property can be used as the source for data binding.


Implementation
    public function get getTableDetailsLastResult():TableDetails
Constructor Detail
DetailsTask()Constructor
public function DetailsTask(url:String = null)

Creates a new DetailsTask object.

Parameters
url:String (default = null) — URL to the ArcGIS Server REST resource that represents a map service or feature service.
Method Detail
getAllDetails()method
public function getAllDetails(responder:IResponder = null):AsyncToken

Gets the detailed information for all the ArcGIS layers and tables in a Map Service. On completion, an AllDetails object is returned. This requires ArcGIS Server 10.0 or above (9.3 will return an "invalid URL" error) and is only supported for Map Services (not Feature Services, Image Services, or any other services).

Parameters

responder:IResponder (default = null) — IResponder to pass the AllDetails result to.

Returns
AsyncToken

See also

getDetails()method 
public function getDetails(layerOrTableId:Number, responder:IResponder = null):AsyncToken

Gets the detailed information for an ArcGIS layer or table. On completion, a LayerDetails is returned if layerOrTableId is a layer, or a TableDetails is returned if layerOrTableId is a table.

Parameters

layerOrTableId:Number — Layer ID or Table ID assigned by ArcGIS Server for a layer or table.
 
responder:IResponder (default = null) — IResponder to pass the LayerDetails or TableDetails result to.

Returns
AsyncToken

See also

Event Detail
fault Event
Event Object Type: mx.rpc.events.FaultEvent
FaultEvent.type property = mx.rpc.events.FaultEvent.FAULT

Dispatched when a DetailsTask fails.

getAllDetailsComplete Event  
Event Object Type: com.esri.ags.events.DetailsEvent
DetailsEvent.type property = com.esri.ags.events.DetailsEvent.GET_ALL_DETAILS_COMPLETE

Dispatched when an getAllDetails operation successfully completes.

Defines the value of the type property of an getAllDetailsComplete event object.
getDetailsComplete Event  
Event Object Type: com.esri.ags.events.DetailsEvent
DetailsEvent.type property = com.esri.ags.events.DetailsEvent.GET_DETAILS_COMPLETE

Dispatched when an getDetails operation successfully completes.

Defines the value of the type property of an getDetailsComplete event object.