Select to view content in your preferred language

Query of MapService

1157
1
Jump to solution
06-18-2012 06:16 AM
ShaningYu
Honored Contributor
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.
0 Kudos
1 Solution

Accepted Solutions
ShaningYu
Honored Contributor
Problem solved by set values to the array.

View solution in original post

0 Kudos
1 Reply
ShaningYu
Honored Contributor
Problem solved by set values to the array.
0 Kudos