question about the formatterof the  value returned  by findTask

541
1
12-14-2011 10:38 PM
taopy
by
New Contributor
i'm the first time use the findtask ,and i've a question  about that :
the code in flex :
private function myResultFunction(event:FindEvent):void{
   for(var i:Number=0;i<event.findResults.length;i++)
   {
    
    var result:FindResult=event.findResults as FindResult;
    var graphic:Graphic=result.feature;
    for(var key:String in graphic.attributes)
    {
     trace(key);
     trace(graphic.attributes[key]);  // if the value is null in database, this consloe  "Null"
     trace(graphic.attributes[key] is String) // but this  console  "true"
     trace(graphic.attributes[key]==null);  // and this console "false"
     
    }
   }
  }

i saw that all value  in attributes is in string-type  ,also the objects saved in database in date-type  or null  .and  the result t is not the same with querytask.
so hao can i get the same type i have saved in database in findtask ?

thanks for your help !
0 Kudos
1 Reply
RaviNarayanan
Esri Contributor
Yes, this is expected behavior of MapService Identify and Find response.
0 Kudos