Hello Dojo
In a Low code app dashboard we are using a map component that display a list of terminals
I wonder if is it possible to use an action, to display a panel, and filter the charts components inside the panel, with an id fetched from the dot selected.
It's easy to do by using the selected element from a table with selected rows indices and selected row elements, but I dont know how to do it from maps.
I followed the documentation Configuring low-code app events | DataMiner Docs and I tried to play with Execute component action without success.
Hi Joel,
There are multiple ways to achieve this:
- Add a table to your panel that contains a query which retrieves the selected element/parameter/index, based on the id in the selected marker. Make sure the 'select first row by default' setting is enabled. When the panel is now opened using a 'Open a panel' action on click of a marker, the filtered query executes and the table exposes the data needed for the charts.
- Join the marker query on the data needed for the charts, based on the id column. eg: Joining on 'Get Elements' will make the 'Elements' data available. This works the same as above, without needing the extra query and table component, with the downside that the marker query will need to fetch more data.
- When using an ad hoc source, you can add your own metadata representing DataMiner objects to the query rows. Then you can directly access the required data, without needing joins or extra components.