I have a Toggle that designates 'Compliance', 'Noncompliance' based on a condition.
The Toggle has Patch functions back to an SP List:
OnCheck:
Patch(
MemberList,
LookUp(MemberList,FullNm=ECMemberSearchDD.Selected.FullNm),
{
ComplianceStatus: "Compliant"
}
);
OnUnCheck:
Patch(
MemberList,
LookUp(MemberList,FullNm=ECMemberSearchDD.Selected.FullNm),
{
ComplianceStatus: "Noncompliant"
}
);
My issue is the Toggle doesn't seem to be resetting/refreshing/updating the data when the Member's name is changed (by Dropdown). If one Member is Noncompliant, and the next Member is Noncompliant no Patch is taking place, even though it may be an overwrite of the existing 'Noncompliant' status. If the name change is from 'Compliant' to 'Noncompliant' or reverse, the Patches work fine.
This sounds contrary; however the issue further is the 'ComplianceStatus' is a new column in the SP List. Consequently, the column is empty for most of the 800 Members. When I go through multiple names in the app that are all 'Noncompliant' nothing happens. Is there a way to reset/refresh the Toggle when a new name is chosen in the Dropdown so that regardless of the content in the SP ComplianceStatus list column a Patch takes place, even if an overwrite?