VSW Query\Filter tools Customization
Hi. Wondering if there is a way to configure the filter and query tools to be applied to multiple layers simultaneously, assuming the same schema? Or perhaps planned for future release.
Or alternately, if those tools are built via workflow, is it possible to get those workflows so that we can customize it on our own?
Thanks
-
It doesn't look like this is an existing feature, so you could try suggesting it on
https://apps.vertigisstudio.com/links/web/ideasWeb does have an operation (query-builder.get-query) that can get the current state of the query builder though, so you could have a workflow take the where clause and map extent from query builder to run queries on additional layers. This idea is probably only halfway there, but this is what I came up with while re-using some parts from a workflow I already had on hand:
Put a component with an “optional persistent workflow” in the same panel area as the query builder:

Whenever you open query builder, the workflow also appears and presents the option to run the configured query on multiple layers:

If you use the workflow button it uses your configured where clause and returns results from all selected layers:

Test workflow is here: https://www.arcgis.com/home/item.html?id=09767c36912942c996bac36c6ec9f50a
It would be better to have the workflow evaluate the layer schemas, or have a pre-defined list of layers with matching schemas though, rather than letting the user freely choose from all available map layers. Otherwise you could expect a lot of errors from users running queries with fields that don't exist on their layers.
1 -
Hi Amanda. I submitted an idea for this. Thanks for the ideas about doing it via a workflow. That's helpful and I'll give it a try. One thing - for my use case, I can safely assume that the user will always want the same query applied to a certain set of layers, so I probably don't even need to provide an interface for them to choose the other layers. That said, I'm not sure how I can trigger the workflow to run once the user applies it. I'm not seeing events in the docs for that.
1
Please sign in to leave a comment.
Comments
2 comments