Hi, I have a table where I have to run a query based on the radio button value.
example:
- if radio button value = ID, run searchID query
- if radio button value = Name, run searchName query
how to achieve this?
Hi, I have a table where I have to run a query based on the radio button value.
example:
how to achieve this?
You have to use an Event handler onChange to trigger the queries based on the condition you have above. The simplest non-coding way of doing this is like so:
Thank you for the help. But how can I set up the table, so it shows the data accordingly to the radio button? I presume that we have to change the expression for "data" component on the table
{{query1.data!= null?query1.data:query 16.data}}
for the value in the table component - this way depending on which option is selected, either query will run and populate the form