AnsweredAssumed Answered

Why a proxy error when using QueryTask?

Question asked by evtguy on Oct 18, 2012
Latest reply on Oct 18, 2012 by evtguy
This is just bizarre.

In the attached screenshot, you'll see two vertical cyan polyline features belonging to the same feature layer (and served up as a dynamic map service). I have an infoWindow set up for the feature layer and when it opens, it takes the feature's geometry and then runs a queryTask against a polygon feature layer also on the map (thin blue outlines with no fill in the screenshot).

Now, when I click on the left cyan feature, my queryTask runs just fine. When I click on the righthand cyan feature, it returns a message to the console window: "esri.config.defaults.io.proxyUrl is not set" and basically fails.

Same dataset but different outcomes. Why is that??

Steve

[ATTACH=CONFIG]18558[/ATTACH]

Attachments

Outcomes