Hi i have strange issue in powerapps building in teams using shp as datasource.
i have master checkbox outside gallery with oncheck property :updatecontext({var:true});
set(var,!var);if(var,clearcollect(colup,filter(datsource,cc = combobox1.selected.result or dd = combobox2.selected.result)),clear(colup));
set(editing,true);
on uncheck updatecontext({var:false})
inside gallery for each item i have checkbox onchecking mastercheckbox inside checkboxes are selected onuncheck checkboxes are unchecked
inside checkbox
checked : var
oncheck : collect(colup,thisitem); --- another collection
onuncheck : remove(colup,thisitem);
on select : set(editing,true)
i have comments in gallery which take multiline text for each item onchange : collect(col2,true) --- one colection
displaymode : if(editing,edit,view)
if oncheck on checkbox outside gallery all checkbox inside gallery is selected viceversa
on submitbutton
onselect property:
updateif(colup,true,{op :combobox2.selected.value});
clearcollect(colda,showcolumns(colup,"ID","op"));
patch(datasource,colda);
clear(col2);
forall('gallery'.allitems,collect(col2,{id:value(label.text),comments:textbox.value}));
patch(datasource,col2);
updatecontext({var:true});
updatecontext({var:false});
THE ISSUE WHEN I CLICKING ON SUBMIT BUTTON PATCH IS HAPPENING ON ONE COLLECTION ON ANOTHER COLLECTION FOR COMMENTS PATCH IS HAPPENING SOMETIMES TO SHAREPOINT LIST SOMETIMES NOT. why is issue,could any help where i need to modify my code.