Greetings All!
When I run the code:
_featureLayer.selectFeatures(q, FeatureLayer.SELECTION_ADD, new AsyncResponder(selectFeaturesHandler, selectFeaturesFault));
in my widget code, I get an error thrown in AsyncResponder.as that says "Argument count mismatch ... Expected 1, got 2..."
I'm able to get around this by adding a bogus temporary FeatureLayer to my widget code directly with the selectionComplete function pre-specified in the declaration and then running my selectFeatures against that, but when I do that I run into problems when trying to display the graphical output of the operation on my map.
I guess what I'm looking for is some sample code of using the selectFeatures on a Feature Layer defined in the main config.xml file that displays the selected features on the map and behaves as expected. If anyone can point me to some code I'd be extremely grateful! Thanks in advance ...
- Bob