Are there any examples out there showing how to Query a Service via User input and return results to a table? AND have that table interact with the map features. Click the map and it highlights in the table and visa versa
Example:
1 drop down box for County
1 text field year
User specifies parameters and then on submit the table updates and the features are rendered in the map
Solved! Go to Solution.
Its not exactly what you want but ESRI does have a sample of how to query without a map
Query data without a map | ArcGIS API for JavaScript 3.20
Drew
Its not exactly what you want but ESRI does have a sample of how to query without a map
Query data without a map | ArcGIS API for JavaScript 3.20
Drew
Yea was messing around with that but cant figure out where they are specifying what Field to query from the stateName textbox
Any ideas on how to modify this to include more than one input parameter?
function execute () {
alert("Execute");
query.text = dom.byId("CountyName").value;
query.text = dom.byId("Squad").value;
queryTask.execute(query, showResults);
}
Trying this but no cigar
var CountyName = (dom.byId("CountyName").value);
// THIS WORKS BUT need a variable
//query.where = "County_Nam = 'Accomack' AND Squad = '13'";
query.where = "County_Nam = '+ CountyName +' AND Squad = '13'";
Here are 2 fields
JS Bin - Collaborative JavaScript Debugging