Hi, I have an app where my gallery lists items from a SharePoint list. To be able to bulk update (required), I have created a
"toggleAll" outside the gallery and a "toggleSelect" inside each item that is set to having default value = "toggleAll.Value".
Challenge: On each item inside the gallery I have a button that saves input text directly to the SharePoint list, but when you click it, the default value of the "toggleSelect" is triggered. I don't want this to happen, especially if the "toggleSelect" has been set to false/unchecked (even though the "toggleAll" is true/checked). This is the code for the save button for each inserted text:
Patch(
BulkUpdateV1,
ThisItem,
{
Comments: TxtComment.Text
}
);
Notify("Comment successfully saved");
In addition, I have another button that submits the toggle values and that works fine, using code:
ForAll(
Filter(Gallery1.AllItems, ThisRecord.toggle_ItemSelected.Value = true) As galItem,
If(!IsBlank(TxtComment.Text),
Patch(BulkUpdateV1, LookUp(BulkUpdateV1.ID, ThisRecord.ID = galItem.ID),
{
Approved: {Value: "Approved"}
}
)
));
Navigate(Thanks, ScreenTransition.Fade);
Any tip on how I can prevent the change of the "toggleSelect" when saving the comment text?
Kind regards,
Asbjørn Nielsen