AnsweredAssumed Answered

How to toggle queryTask URL based on selected item in drop down menu?

Question asked by mbakerDPS on May 28, 2014
Latest reply on May 30, 2014 by manish_patel
Hi all,

How would I construct a queryTask URL so that it pointed to a different layer based on the selected item of a drop down?

I have 2 years worth of data I'd like to query based on the selected year in a drop down.

The URL would basically be switched to
http://arcgisserverurl/service/{layer1}
or
http://arcgisserverurl/service/{layer2}


A typical drop down menu has a label and a value... I can set the label to be the Year, and the value to be 0, 1 or whatever the corresponding layer is in the service.

Hope that makes sense!

Thanks!

-m

Outcomes