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

Initial values for elements #486

Closed Vovaman closed 2 months ago

Vovaman commented 2 months ago

01 1) Panel is BusinessForms 2) Add my elements 3) Initial request returns data

02 1) Initial request well-defined (...confirmed by previous picture) and aliases are assigned. 2) Field names are filled.

Result: form is empty. 03

What's wrong?

Vovaman commented 2 months ago

Grafanf: docker image grafana/grafana-enterprise:10.4.4 BusinessForms: Screenshot_20240906_212027 Data source - JSON API: Screenshot_20240906_212144

mikhail-vl commented 2 months ago

@Vovaman Have you tried to use Query for Initial request instead of Data Source?

Using Query you can check returned data in the Table View to make sure that you receive it from the data source. You don't need to use Data Source directly in the Initial Request if you don't create specific payload.

Vovaman commented 2 months ago

1) Yes, if I use Query, data appear. 2) But I plan to construct some complex payload and this is why DataSource is preferrable.

mikhail-vl commented 2 months ago

@vitPinchuk Could you please investigate.