Is there any possibility to use the feed of a query filter component again in a new GQI to apply another filter?
Use case is linked to our newly introduced maps component in dashboards. We'd like to show 2 map components on a single page of a low-code app. Each map component will contain a different set of views/sites, as the regions as geographically quite different. Next to each map component, we'd also like to show a table listing the different sites with the corresponding alarm state.
Although the maps and sites are geographically different, we'd like to use the same query filter to e.g. filter out all gold sites, or only show critical, and have that with a single filter applied to both tables and map components.
Alternative is of course have a 2nd query filter, which could surely do the trick. Just looking if it can be achieved with a single query filter. Thx
Hi Leander,
It is currently not possible to feed a query filter component directly to a new GQI query.
Is the data for both maps components retrieved by the same query? And is the data only filtered differently on location? If that's the case you could create something like this:
- The query filter contains the query and feeds the filtered query to both maps components and the table.
- Each map component has centered its map based on the desired location and adds its viewport as filter to the filtered GQI query. (Component -> Layout -> Layer settings -> Define columns that contain longitude and latitude info)
- When using the query filter, e.g. to filter on a certain property, both maps components and the table will update their data.
- You can also limit the zoom level of the maps components to make sure the user does not zoom out too much which could result in fetching all the data.
- You can also limit the bounds of a maps component to make sure the user stays in the right geographical location.
Dashboard
Dashboard with query filter filtered on ID = 1:
Thanks Ward for the reply. For the use case I had in mind, the two maps were fed with different information. Then again, I can easily also think of a situation where both would have the same information.
For now, I’ll just add 2 query filters to update the 2 cards. Thx