Select to view content in your preferred language

How do I identify multiple features and and return field values in a form?

1146
7
01-25-2012 08:29 AM
AimeiChen
Frequent Contributor
I am a newbie to flex programming. I am trying to migrate a customized identify widget from 1.3 to 2.4 and stuck with the output of the identify result. The tool works in 1.3 and it identify multiple layers and returns the specified filed values in one form. I attached my source code here, can someone help me please?

Thanks,
Amy
Tags (2)
0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus
Amy,

  Why do you have your results in an Accordion when you are only giving it one canvas?
0 Kudos
AimeiChen
Frequent Contributor
Amy,

  Why do you have your results in an Accordion when you are only giving it one canvas?


Hi, Robert

I have the accordion with one canvas in flex 1.3, so didn't touch that piece a lot. Is this a problem?

Thanks,

Amy
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Amy,

   See if this works. I can not test as your map service is not accessible.

Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:
0 Kudos
AimeiChen
Frequent Contributor
Amy,

   See if this works. I can not test as your map service is not accessible.

Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:


Hi, Robert

Thanks for your quick response. I noticed you modified the accordion to a scroller, but unfortunately it's still not working. the processIdentifyResults function have not been called yet.

Amy
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Amy,

   As I mentioned I can not test/debug your code because I don't have access to the map service you are using. You need to check your identifyParams and the URL, identifyParams.tolerance = 1 seems pretty low. Do you get to the Alert in the identifyFeatures function?
0 Kudos
AimeiChen
Frequent Contributor
Amy,

   As I mentioned I can not test/debug your code because I don't have access to the map service you are using. You need to check your identifyParams and the URL, identifyParams.tolerance = 1 seems pretty low. Do you get to the Alert in the identifyFeatures function?


Hi, Robert
I changed the tolerance to 3, but the problem actually is in idResult event, once I fixed that, it is working perfectly. Thanks for your help, I'd like to give you a point if you can tell me how to do it?.

Amy

private function idResult(event:ResultEvent):void{
  
   onResult(new IdentifyEvent("",idResults));
  
  }
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Amy,

    Glad you got it working. Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:
0 Kudos