Skip to main content

Can I do a definition query "on the fly" to show only those features, like ArcMap does?

Comments

4 comments

  • Permanently deleted user
    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
  • Permanently deleted user
    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 helps
    0
  • Permanently deleted user
    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
  • Nico Burgerhart
    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

Please sign in to leave a comment.