Hi:
See attached.
I have two related SP Lists: ARMSitems and ARMStasks. One ITEM can have many TASKS.
The Galleries are created from Collections based on the SP Lists.
The ITEMS List ID is used as a Reference ID in TASKS list as a Column ItemID (Data Type Number).
On My ITEMS screen, when I change a record to "Inactive" status from an "Active" status, below is my code for the Update Data button for OnSelect property:
UpdateIf(colGalItemsData,ThisRecord in colSelectedItems,{ItemActive:If(drpItemActiveStatusAI.Selected.Value="Active", true , false )});
Clear(colSelectedItems);
Reset(chkSelectAll_ItemsAl);
And for Save Data button on ITEMS screen, the Code for OnSelect property is:
Patch(ARMSitems,ForAll(colGalItemsData As MyCollection,{ID:MyCollection.ID,ItemActive:MyCollection.ItemActive}));
I want to change/match the Active Status of all the Related Tasks, if an ITEM's Active Status is changed.
Below is the code for TASK Screen:
Code for Update Data button for OnSelect property:
UpdateIf(colGalTasksData,ThisRecord in colSelected,{Active:If(drpActiveTaskStatusAT.Selected.Value="Active", true , false )});
Clear(colSelected);
Reset(chkArchiveTasksAllAT);
And, the code for the Save Data button for OnSelect property:
Patch(ARMStasks,ForAll(colGalTasksData As MyCollection,{ID:MyCollection.ID,Active:MyCollection.Active}));
Thank you for your consideration.
SueA.