What would be the best approach to my problem? I have two select fields in a row, in one I select a SW and in the other I would like to select a version based on the selected SW. The SW and versions are chronologically written in another table, where for each SW there are several rows with different versions. My wish is that when I select a SW in one select field, I move to the next one, where I can select only the versions of the SW selected previously?
The example is roughly what I want. I want the first choice options to be dynamic as well. From the query I get, for example: {“si.lab4pay.pos.android”:[{“value”:“2.1.6”},{“value”:“2.1.7”},{“value”:“2.1.8”}],“com.trsys.bankartpayment”:[{“value”:“2.10.0”},{“value”:“2.9.0”}]} and I would like to be able to select the App package name options in the first field, which are also dynamic, and the versions in the second field, because this can change daily. Is this possible?
In the Options setting of the ‘App package’ one, get the package names:
And finally, in the Options setting of the ‘Version’ select, get the appropriate versions if a package is selected in the ‘App package’ select component:
I was little to quick. It is working fine when I use two separate select fields, but when I try to implement in new Row in table then somehow won’t work. Selection of App package is not filled or I can’t find it and therefore I can’t select the version?
This was a bit tricky to make it work, but I managed to make the selects work in a table. I hope this is what you are asking about .
From what I understood, you’d like to have the selection of the app package and version inside a table, very likely as Select/Tag columns.
So I made a simple setup with exactly that:
Add table component
Configure the columns of the table to your liking, but we obviously need at least a column holding the primary key and two columns of the Select/Tag type for the app & version select
Create an action or state variable that holds all the options (just like in my previous answer). I created an action called getOptions that looks like this: