Filter content of layers from workflow
Hi,
Is it possible inside a workflow to filter the content of different layers from a query result (feature set) ?
I would like to achieve the same result as with the command "SimpleFilterBuilderView" from the toolbar menu but dynamically from my workflow.
I want to show in the result panel only the content from my search layer but I want to show on the map only the filtered content from all the related layers.
For example, I search specific polygons from a polygons layer through a search form. I want to show the query result in my result panel but I would like to filter the annotations from different layers and show on the map only the annotations related with my searched polygons and not all of them.
Hopefully it is possible!
Thanks
Stephan
0
-
If it is possible to use the query you make to your polygon layer to build a query to get the correct annotations, you could use the SetLayerDefinition activity on the annotaton layer(s). For example, if you query for polygons with "TYPE = 4", and your annotation layers has this TYPE-attribute as well, you should use a SetLayerDefiniton on the annotation layers with "TYPE = 4" as the layer definiton expression 0 -
Hello Jostein, 0 -
How did you manage to do this? Annotations layers don't seem to react to the activity SetLayerDefinition (in workflow 5 and workflow 4). Neither can I see them in the SimpleFilterBuilderView. I don't have issues putting definition queries on layers that aren't annotation layers.
0
Please sign in to leave a comment.
Comments
3 comments