Select to view content in your preferred language

getting Query error.

921
0
09-05-2011 07:55 AM
SubhashSheladia
New Contributor
Getting below error.....
[RPC Fault faultString="Unable to complete  operation." faultCode="400" faultDetail="Unable to complete Query operation."]


My Code is.....

var query:Query = new Query();
       query.outSpatialReference=myMap.spatialReference;
       query.outFields=["PERMIT_NBR","OBJECTID","ACCOUNT_NBR"];
       query.returnGeometry=true;      
       //query.text=txtCity.text;
       query.where="Name = '" + txtCity.text + "'";

      //CityQueryTask.execute(query,null);
     
      CityQueryTask.execute(query, new AsyncResponder(onResult, onFault));
      function onResult(featureSet:FeatureSet, token:Object = null ):void
      { 
       Alert.show("Hi");
       //querygraphic.graphicProvider = CityQueryTask.executeLastResult.features;
      }
      function onFault(info:Object, token:Object = null):void
      {
       Alert.show( info.toString() );
      }     

Please help me.

Thanks
Tags (2)
0 Kudos
0 Replies