http://localhost:8080/query?outFields=&f=json&returnGeometry=false&where=null%20is%20not%20null&spatialRel=esriSpatialRelIntersects"]. URL: http://localhost:8080/query?outFields=&f=json&returnGeometry=false&where=null%20is%20not%20null&spatialRel=esriSpatialRelIntersects
var detailsTask:DetailsTask = new DetailsTask(); detailsTask.url = "http://ags10wg:8399/arcgis/rest/services/test1/MapServer"; detailsTask.getDetails(7, new AsyncResponder(detailResult, onFault));
detailsTask.getDetails(layerId, new AsyncResponder(detailResult, onFault));
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:esri="http://www.esri.com/2008/ags">
<s:layout>
<s:VerticalLayout horizontalAlign="center" paddingTop="10"/>
</s:layout>
<fx:Script>
<![CDATA[
import mx.rpc.AsyncResponder;
protected function button1_clickHandler(event:MouseEvent):void
{
detailsTask.getDetails(0, new AsyncResponder(myResultFunction, myFaultFunction));
function myResultFunction(result:Object, token:Object = null):void
{
trace(result);
}
function myFaultFunction(error:Object, token:Object = null):void
{
trace(error);
}
}
]]>
</fx:Script>
<fx:Declarations>
<esri:DetailsTask id="detailsTask" url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer"/>
</fx:Declarations>
<s:Button click="button1_clickHandler(event)" label="Get Details"/>
</s:Application>