ThinkGeo.com    |     Documentation    |     Premium Support

GetFeaturesByColumnValue doesn't seem to return anything

I have been trying very unsucessfully to implement a "Find feature by Attribute" feature.


I want to be able to have someone type in a reference number and for me to zoom into that area.


I know for sure that 14185 exists but always returns an empy collection, I have tried the build IdColumn but that isn't going to help with other fields, they user will be searching under any of the fields in the shape file.


Dim Results As New ObjectModel.Collection(Of Feature) Results = EPMLayer.FeatureSource.GetFeaturesByColumnValue("TENURENUM", "14185")


Any ideas?



I ended up getting that working, found out that the BuildIdColumn function wants a name for the ID column not a column to base the Id off ( it had wiped my TenureNum column, and hence this function couldn’t find my value. 
  
 Everything seems to be working now :) 
  


Great you figure it out by yourself :) Still Let us know for any queries.