I am building on my earlier post where I created a feature layer on the client from a Feature Collection.
I need to be able to select feature(s) from the layer with a where clause. I am able to select them with featureLayer.selectFeatures -- if I omit the where clause and use only objectIds. If I try to use a where clause, I get an error that my query contains one or more unsupported parameters.
This code snippet illustrates the issue:
var query = new Query(); query.where = "bl_id = 'B-US-MA-1001'"; //query.objectIds = ; featureLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW);
This jsFiddle demonstrates the behavior:
What am I missing?
PS. I might add that using the query.where approach works just fine when I have a feature layer that was created from an ArcGIS source. The real issue arises when I build the feature layer on the client from a Feature Collection.