Select to view content in your preferred language

Need help with ESRI's Filter tool....

790
1
01-30-2013 10:22 AM
KarenEllett
Regular Contributor
I have a layer that I'm trying to filter based on an attribute.  The filter tool works perfectly - it's fast and easy.  The problem is, simple as it is, it's too complex for our customer.  We have a textbox they can enter their value in, and want it to filter based on that.  It's only one layer, and one attribute, so I thought it would be simple to write a tool.  I've tried a find task and layer definition in multiple different ways.  They all work... they're just abysmally slow.  Is there any way to take the input from the text box, put that into the where clause, and pass it to the built in filter tool??  Or is there a sample of the code used by the filter tool anywhere, so that I can replicate the back end portion?

Thanks!
0 Kudos
1 Reply
AlexeyTereshenkov
Deactivated User
You would need to develop an add-in that will implement this business logic. A good way to start is to explore the Extensibility SDK available for Silverlight Viewer and the attribute query sample (find Attribute Query).

You might also like getting hands at the source code of a similar add-in available for free here.
0 Kudos