Can I do a definition query "on the fly" to show only those features, like ArcMap does?
I want to be able to filter my features, rather than just selecting or finding, so that my user can create a prettier and less crowded map specifically for a single site. Can I do this? Perhaps even in a workflow?
0
-
Not sure exactly what you are saying - the user can filter (like definition query) a layer, if you have set it up to allow query operations when you set up the layer in Manager... 0 -
Jacqueline,
I believe you would need to use a workflow if functionality needs to be user driven and dynamic.
You could ask the user to select a feature or an area (with capture geometry or parameters selection); with queryTasks activity identify features interested; filter them using a SetLayerDefinition activity (those steps can be done across different layers on same workflow).
Workflow could be even more intuitive if called using right-click on the map. This would avoid feature selection step and context can be used.
You might want to think in advance how/when to show all other features again when user wants to look at different area...
Hi hope this helps0 -
Thanks Francesca! The Set Layer Definition was it! I was able to show only one well!!
What would be the best way to remove the query? Can I make a workflow that resets all queries?0 -
You can set the defintion expression to "" to remove the query. You have to define the layer(s), you cannot apply it to all layers. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare