AnsweredAssumed Answered

Query Data Without Map

Question asked by jay.kapalczynski on Jun 13, 2014
Latest reply on Jun 13, 2014 by jay.kapalczynski
I am trying to get this sample to work....the example from ESRI works of course

I created a JSFiddle

then added my Map Service and Query Definition
Only other thing I changed was the value of the Value <input type="text" id="stateName" value="Potomac River"> which I verified was a legit value for this field.
After these two changes I am NOT able to get to the "ALERT 3" inside the Function showResults(results)

The Map Service has Map, Query, Data as Operations Allowed.

My questions are:

  1. Why does this not work with my Map there something that I am missing here?

  2. I am not seeing where the query is targeting a specific field? The value I am lloking for is in the "WATERBODY" field

  3. Lastly: Can this be modified to query more than one field/value?