Hello,
I’m trying to use 4 dependent dropdowns from a group column but it’s not working.
The app has two tables, “master” and “form”, each with four columns.
The “Master” table are:
The 4columns in the “Form” table are:
Column1 name is “group1”, type is Enum, base type is Ref and Referenced table is “Master”.
Column2 name is “group2”, type is EnumList, base type is Ref, and Referenced table is “Master”.
Column3 name is “group3”, type is EnumList, base type is Ref, and Referenced table is “Master”.
Column4 name is “group4”, type is EnumList, base type is Ref, and Referenced table is “Master”.
The desired behavior is
Dropdown1, if you select “A” in column[group1], you can select ‘A1’, ‘A2’ and ‘A3’ in column[group2].
Dropdown2, if you select “A1” in column[group2], you can select “Auser1” in column[group3].
And, Dropdown2, if you select “A1”, “A2”, “A3” in column[group2], you can select “Auser1”, “Auser4”, “Auser6”, “Auser7” in column[group3].
Dropdown 1 and 2 worked.
The following expression entered in dropdown 3 “Valid if” gave the desired result when only one value was selected from the EnumList.
SELECT(
Master[group3],
AND(([group1] = [_THISROW].[group1] ),
IFS(CONTAINS([_THISROW].[group2],“A1”),[group2] = “A1” )
))
But I don’t know the formula to select multiple comma separated values ??from an EnumList.
By the way, the following formula did not give the desired result.
SELECT(
Master[group3],
AND(([group1] = [_THISROW].[group1] ),
IFS(CONTAINS([_THISROW].[group2],“A1,A2,A3”),CONTAINS([group2] ,LIST(“A1”,“A2”,“A3” ))
))
How can I get multiple values ??like “in” in SQL?
How can dropdown 3 work?
