AnsweredAssumed Answered

Getting an error when trying to do a query in esri-leaflet

Question asked by joepub on Sep 12, 2014
Latest reply on Sep 15, 2014 by joepub

I am trying to created an app that when you click on a button at the top of the page will display only the countries that will satisfy the query attached to the button (see bottom of the file attached).

 

Here is the snippet of the code:

 

$('#NSM').click(function(){

     var buttonType = document.getElementById('NSM');

     countries.setWhere('type="'+ buttonType.value + '"');

});

 

I am using the "querying features #2" as my template.

 

The error I'm getting is

{"error":{"code":400,"message":"Unable to complete operation.","details":["Attribute column not found [Microsoft SQL Server Native Client 11.0: Invalid column name 'NSM'.] [MEP_global_data.DBO.test_bdry]"]}}

 

Any help would be appreciated

 

Thanks

Outcomes