Query of MapService

509
1
Jump to solution
06-18-2012 06:16 AM
ShaningYu
Frequent 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.
Reply
0 Kudos
1 Solution

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

View solution in original post

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

View solution in original post

Reply
0 Kudos