Clear(colGalUpdates);
Collect(colGalUpdates,
ShowColumns(
Filter(CityhopGallery.AllItems, ThisRecord.CityhopComments <> galNotes.Text), Title, ID, OutSource, 'Write-Off', CityhopComments, CollectionsComment));
ForAll(
colGalUpdates,
With(
{
_title: ThisRecord.Title,
_Outsource: galOutsource.SelectedText.Value,
_WriteOff: drpWriteOff.SelectedText.Value,
_CHComment: galNotes.Text,
_ColComment : galColNotes.Text
},
Patch(
CityhopList,
LookUp(colGalUpdates, ID= CityhopGallery.Selected.ID),
{
Title: ThisRecord._title,
OutSource:ThisRecord._Outsource,
'Write-Off': ThisRecord._WriteOff,
CityhopComments: ThisRecord._CHComment,
CollectionsComment: ThisRecord._CHComment
}
)
)
);
Refresh(CityhopJune2025);