Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

users' action result could update a dashboard variable's value #228

Closed
alpglide opened this issue Jan 21, 2025 · 3 comments
Closed

users' action result could update a dashboard variable's value #228

alpglide opened this issue Jan 21, 2025 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@alpglide
Copy link

alpglide commented Jan 21, 2025

I have a simple table with three columns: country, city, and population. In the Add/Edit form, the country field is a dropdown (select type), with its values retrieved from the following query:

SELECT DISTINCT country FROM mytable

My question is how to dynamically set the options for the city dropdown based on the selected country. I tried using the query:

SELECT DISTINCT city FROM mytable WHERE city = '${payload.country}'

However, this query does not seem to work. How can I achieve the desired functionality?

I know "SELECT DISTINCT city FROM mytable" will fill options in city's dropdown, but "Toronto" should not show up when users choose "US" in country column already.

@alpglide
Copy link
Author

alpglide commented Jan 25, 2025

I might redefine this as a new feature requirement: When a user selects a row or makes a selection of a column in edit/add mode, their selection could update a dashboard variable's value. This functionality could unlock numerous possibilities.

@alpglide alpglide changed the title select type for the nested column users' action result could update a dashboard variable's value Jan 25, 2025
@vitPinchuk vitPinchuk self-assigned this Feb 6, 2025
@vitPinchuk vitPinchuk added the question Further information is requested label Feb 6, 2025
@mikhail-vl mikhail-vl moved this to Ready in Business Suite Feb 20, 2025
@vitPinchuk
Copy link
Contributor

@alpglide Thank you for your question

To achieve change variable use data-links functionality

Image

21.02.2025.12.15.47.webm

Clicking on the cell will replace the variable from the field you specified

It is not yet possible to change a variable via Select in edit mode

@github-project-automation github-project-automation bot moved this from Ready to Done in Business Suite Feb 21, 2025
@alpglide
Copy link
Author

alpglide commented Mar 2, 2025

thank you for your help.
yes, datalink was the way we used to edit the data by combining business-form and regular table when there was no business table yet. Clicking a link in regular table would change the var-id in the dashboard by datalink, then use var-id to CRUD a row through business-form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Archived in project
Development

No branches or pull requests

2 participants