Select to view content in your preferred language

getAlldetails only for ArcGIS Server 10?

2557
1
09-20-2010 12:26 AM
KarlMagnusson
Deactivated User
Do I need ArcGIS Server 10 in order to use the method getAllDetails() on an ArcGISDynamicMapServiceLayer? In the function below I always end up in allDetailsFault. The "URL" is correct.
I work with AGS 9.3.1 and the 2.0 flex API, and the beta flex viewer.


private function getLayerIDs():Array
   {
    var array:Array = new Array;
    var agdynLayer:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(URL)
    agdynLayer.getAllDetails(new AsyncResponder(allDetailsResult, allDetailsFault));
    function allDetailsResult(event:AllDetails):void
    {
     //loop trough checkboxes  and match with layerdetail.name and push layerdetail.id to array

    }
    function allDetailsFault( info : Object, token : Object = null ):void
    {
          //This is where I end up
                                 }
    return array;
   }

Thanks

/Karl Magnusson
municipality of Växjö
Tags (2)
0 Kudos
1 Reply
KarlMagnusson
Deactivated User
So sorry just found out myself. Somehow missed this
from the API refrence (ArcGISDynamicMapServiceLayer):

getAllDetails () method 
public function getAllDetails(responder:IResponder = null):AsyncToken
Since :  ArcGIS API for Flex 2.0
Gets the detailed information for all the ArcGIS layers and tables in the service. On completion, an AllDetails object is returned. This requires ArcGIS Server 10.0 or above.



This means that ESRI-Sweden need to hurry up it's distribution of ArcGIS 10 since they haven't started yet. Would really like to have AGS 10 when the new viewer and the new api is released.

/Karl Magnusson
municipality of Växjö
0 Kudos