Is there a way to have a form auto generate its input fields based on a SQL query?
As an example, I have a table with failure modes for an assembly station.
The table has: Id, 'Failure_Mode_Name', and 'Related_Station_Id'.
I want to be able to have a selector in a form to pick a 'related_station_Id' and have inputs for each of the related Failure_Mode_Names.
So, If I select Station Id 2, I want to see all the failure mode names related to that station.
Here's an example table.
In this example I should see Ids 2, 3, 5, 6
β Id β Failure_Mode_Name β Related_Station_Id β
β βββββ¬ββββββββββββββββββββ¬βββββββββββββββββββββ£
β 1 β Open β 1 β
β βββββ¬ββββββββββββββββββββ¬βββββββββββββββββββββ£
β 2 β Missing Coil β 2 β
β βββββ¬ββββββββββββββββββββ¬βββββββββββββββββββββ£
β 3 β test β 2 β
β βββββ¬ββββββββββββββββββββ¬βββββββββββββββββββββ£
β 4 β Open β 6 β
β βββββ¬ββββββββββββββββββββ¬βββββββββββββββββββββ£
β 5 β Column Shorts β 2 β
β βββββ¬ββββββββββββββββββββ¬βββββββββββββββββββββ£
β 6 β HC Shorts β 2 β
ββββββ©ββββββββββββββββββββ©βββββββββββββββββββββ```