Hoppa till huvudinnehållet

VSW Query\Filter tools Customization

Kommentarer

2 kommentarer

  • Amanda Frech

    It doesn't look like this is an existing feature, so you could try suggesting it on 
    https://apps.vertigisstudio.com/links/web/ideas

    Web 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
  • Zorba Conlen

    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

Du måste logga in om du vill lämna en kommentar.