Hi @KnowledgeSeeker ,
According to the needs you want to achieve, I think your second screenshot is in right direction.
On your side, you could consider add a Dropdown control to list available Group Names, and then display related Students based on the selected Group in a Gallery control.
I have made a test on my side, please consider take a try with the following workaround:
Add a Dropdown control (Dropdown1) in your app screen, set the Items property to following:
Distinct(Table1, ID_Group)
Add a DatePicker control in your app screen, to collect the date.
Add a Gallery control in your app screen, set the Items property to following:
Filter(Table1, ID_Group = Dropdown1.Selected.Result)
within this Gallery, add a Toggle control, set the OnCheck property of the Toggle1 to following:
Patch(
Table3,
Defaults(Table3),
{
Date: DatePicker1.SelectedDate,
Group: Dropdown1.Selected.Result,
Name: ThisItem.Student,
'Attendance (Y/N)': "Y"
}
)
set the OnUncheck property of the Toggle1 to following:
Patch(
Table3,
Defaults(Table3),
{
Date: DatePicker1.SelectedDate,
Group: Dropdown1.Selected.Result,
Name: ThisItem.Student,
'Attendance (Y/N)': "N"
}
)
set the Default property of the Toggle1 to following:
If(
ThisItem.'Attendance (Y/N)' = "Y",
true
false
)
Please consider take a try with above solution, then check if the issue is solved.
Best regards,.