AnsweredAssumed Answered

Query of MapService

Question asked by shaningesri on Jun 18, 2012
Latest reply on Jun 18, 2012 by shaningesri
I am testing for the solution using ActionScript.  In my test, I tried to covert the code below:
  <esri:FindParameters id="myFindParams"
        contains="true"
        layerIds="[3]"
        outSpatialReference="{map.spatialReference}"
        returnGeometry="true"
        searchFields="[MCN]"
        searchText="{fText.text}"  />
to ActionScript code:
    var myFindParams:com.esri.ags.tasks.supportClasses.FindParameters = new com.esri.ags.tasks.supportClasses.FindParameters();
    myFindParams.contains = "true";
    myFindParams.layerIds = "[3]";  // Error 1067
    myFindParams.outSpatialReference = "{map.spatialReference}";    // Error 1067
    myFindParams.returnGeometry = "true";
    myFindParams.searchFields = "[MCN]";    // Error 1067
    myFindParams.searchText = "{fText.text}";
But I received 3 Errors (type 1067 Implicit coercion of a value of type String to an unrelated type Array).  How can these errors be corrected?  Thanks.

Outcomes