I have an app that directly patches a radio values to the datasource and uses a lookup for defaulting the radio buttons. How can I convert these so that this format works with a checkbox. I don't know how to alter the onchange for oncheck and onuncheck for the checkbox. How can I alter the onchange for the uncheck part of the checkbox?
Onstart - ForAll(GUAT, Collect(collGUATMasterData, {C1: Step, C2:'Short Description', C3:LookUp(collGUATResponses, Title=vUserMail &&(GUATListID)=Text(Step) && (Scenario)=Text(Scenario) && (Step)=Text(Stepp) && (Name_)=Text(varUser), RadioValue), C4:System, C5:Scenario, C6:Stepp, C7:Name_=User().FullName}));
Default of radio button - LookUp(GUATResponses, Title=vUserMail && GUATListID = Text(ThisItem.C1)).RadioValue
Onchange of radio button - Patch(GUATResponses,
Coalesce(LookUp(GUATResponses, Title=vUserMail && GUATListID=Text(ThisItem.C1) && Scenario=Text(ThisItem.C5) && Step=Text(ThisItem.C6) && Name_=varUser),
Defaults(GUATResponses)
),
{Title: vUserMail, GUATListID: ThisItem.C1, Scenario: ThisItem.C5, RadioValue: Radio4.Selected.Value, Step:ThisItem.C6, Name_:varUser}
);
UpdateIf(collGUATMasterData, C1=ThisItem.C1, {C3:Self.Selected.Value});
User | Count |
---|---|
184 | |
123 | |
90 | |
46 | |
42 |
User | Count |
---|---|
268 | |
160 | |
129 | |
82 | |
76 |