I use a gallery with checkboxes:
I have other line item aside from Shift A which are Shift B, Shift C, and Shift D. Whenever I select the checkboxes for the other shifts, it only updates the Shift A line. I'm also using LookUp to find the shift. Here's the code I'm currently using.
All - checkbox
OnCheck
Patch(db,
LookUp(db,lblEmployees.Text = ThisItem.Employee.Value),
{All: true,
EmpA: true,
EmpB: true,
EmpC: true,
EmpD: true
});
OnUnCheck
Patch(db,
LookUp(db,lblEmployees.Text = ThisItem.Employee.Value),
{All: false,
EmpA: false,
EmpB: false,
EmpC: false,
EmpD: false
});
I think I'm missing something on my LookUp function. Please help.

Report
All responses (
Answers (