If it helps here is a simple test for you all to try.
Screens:
Screen1:
Properties:
LoadingSpinnerColor: =RGBA(56, 96, 178, 1)
Children:
- Button1:
Control: ModernButton@1.0.0
Properties:
Height: =62
OnSelect: |-
=ClearCollect(
Test,
{
OBS_Index: 1,
OBS_SimplexDuplexModern:"",
OBS_SimplexDuplexClassic: ""
}
)
Text: ="Initialise"
Width: =129
X: =156
Y: =88
- Gallery1:
Control: Gallery@2.15.0
Variant: BrowseLayout_Vertical_TwoTextOneImageVariant_ver5.0
Properties:
BorderColor: =RGBA(0, 18, 107, 1)
Fill: =RGBA(180, 214, 250, 1)
Height: =373
Items: =Test
X: =614
Y: =88
Children:
- Subtitle1:
Control: Label@2.5.1
Properties:
BorderColor: =RGBA(0, 0, 0, 1)
Font: =Font.'Open Sans'
FontWeight: =If(ThisItem.IsSelected, FontWeight.Semibold, FontWeight.Normal)
Height: =Self.Size * 1.8
OnSelect: =Select(Parent)
PaddingBottom: =0
PaddingLeft: =0
PaddingRight: =0
PaddingTop: =0
Size: =12
Text: =
VerticalAlign: =VerticalAlign.Top
Width: =
X: =
Y: =
- Separator1:
Control: Rectangle@2.3.0
Properties:
BorderColor: =RGBA(0, 18, 107, 1)
Fill: =RGBA(255, 255, 255, 1)
Height: =8
OnSelect: =Select(Parent)
Width: =Parent.TemplateWidth
Y: =Parent.TemplateHeight - Self.Height
- Rectangle1:
Control: Rectangle@2.3.0
Properties:
BorderColor: =RGBA(0, 18, 107, 1)
Fill: =RGBA(0, 18, 107, 1)
Height: =Parent.TemplateHeight - Separator1.Height
OnSelect: =Select(Parent)
Visible: =ThisItem.IsSelected
Width: =4
- modernDropdown1:
Control: ModernDropdown@1.0.0
Properties:
Default: =Filter(Test,OBS_SimplexDuplexModern = ["Simplex" || "Duplex"])
ItemDisplayText: =ThisItem.Value
Items: =["Simplex","Duplex"]
X: =83
Y: =58
- Dropdown1:
Control: Classic/DropDown@2.3.1
Properties:
BorderColor: =RGBA(0, 18, 107, 1)
ChevronBackground: =RGBA(56, 96, 178, 1)
ChevronFill: =RGBA(255, 255, 255, 1)
ChevronHoverBackground: =ColorFade(RGBA(56, 96, 178, 1), -20%)
ChevronHoverFill: =RGBA(255, 255, 255, 1)
Default: =ThisItem.OBS_SimplexDuplexClassic
Font: =Font.'Open Sans'
HoverFill: =RGBA(186, 202, 226, 1)
Items: =["Simplex","Duplex"]
Items.Value: =Value
OnSelect: =Select(Parent)
PressedColor: =RGBA(255, 255, 255, 1)
PressedFill: =RGBA(0, 18, 107, 1)
SelectionColor: =RGBA(255, 255, 255, 1)
SelectionFill: =RGBA(56, 96, 178, 1)
X: =83
- Button1_1:
Control: ModernButton@1.0.0
Properties:
Height: =62
OnSelect: |-
=ForAll(
Gallery1.AllItems As r,
Patch(
Test,
LookUp(Test, OBS_Index = r.OBS_Index),
{
OBS_SimplexDuplexModern: modernDropdown1.Selected.Value,
OBS_SimplexDuplexClassic: Dropdown1.Selected.Value
}
)
);
Text: ="Patch"
Width: =163
X: =380
Y: =88