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