VolkovLabs / business-forms

The Business Forms panel is a conceptually new plugin for Grafana. It is the first plugin that allows inserting and updating application data, as well as modifying configuration directly from your Grafana dashboard.
https://docs.volkovlabs.io
Apache License 2.0
86 stars 10 forks source link

Remove existing rows from a table #371

Closed munnik closed 8 months ago

munnik commented 8 months ago

I would like to give my users an option to remove existing rows from a table. Is it possible to use this plugin to show existing rows as a table and add a trash can icon to each row in the table? The trash can should invoke an action that removes the corresponding row. Because my rows use a composite primary key, it is hard for users to enter that key in one or more fields without making mistakes.

mikhail-vl commented 8 months ago

@munnik You can use datalinks in the table to set the dashboard variable. Then Data Manipulation panel can use the Initial Request to retrieve the selected row using dashboard variables from the data source. To update row you can use data source or REST API.

Data Manipulation works with forms, not the table. You can create a table with buttons using Dynamic Text panel.