@JCallan
Yes, it's a little convoluted to go about it that way. But I am now more concerned with this part of your response "then Save all Collected..." How do you envision this happening? Is there some button that is going to handle that? Or are you expecting it to happen in some other way?
You're going to run into some obstacles by trying to rely on the On actions of the input controls in your Gallery. They are PowerApps behavioral actions. They don't work like what you might think in a development product when you have Events on controls. So, there is a good potential that your final save will exclude some values.
This is why it is best to reference the controls directly, painful as it is with lots of controls, it will ensure that you are getting the actual values that are in those controls correctly.
Now, from a performance standpoint, you are better off updating the row/record each time it is completed. This is why a save type icon on each row when editing is preferred as it will occur when the user clicks it. However, if you're doing more of a free flowing Excel like gallery, then you will not want that. In that case it get to a little more pain as you *really* want to have a control (a toggle or checkbox - hidden) that will be true if there are any changes in that record. That is painful because you have a lot of columns and controls, so you would need to validate all columns against the input controls in the row.
ex. A Default property on a checkbox:
With(ThisItem,
!(ColumnA = inputColumnA.Text) ||
!(ColumnB = inputColumnB.Text) ||
...etc...
)
So, this hidden checkbox would be true if there is any change in the row.
Now, with that checkbox, you can perform your final operation based on the entire Gallery table.
ex.
Collect(yourDataSource,
ForAll(Filter(yourGallery.AllItems, theCheckBox.Value),
{ColumnA: inputColumnA.Text,
ColumnB: inputColumnB.Text,
...etc...
}
)
)
This will then only do the Collect action on the changed rows.
Again, painful if there are a lot of columns, but at some point, collection or not, you need to reference the controls and assign the values. So, since that is the time consuming part, I would go with simple and skip the extra overhead of trying to manipulate a collection.
And, if the rows of your gallery are based on existing records, you'll want to include the ID in your records and change to Patch instead of Collect.