I have a Gallery which Items property is a collection. Each collection item is represented in a Textbox:

Then there are a couple textboxes that are empty by default, and will only be filled later, and other textboxes may be updated. I need to loop through the entire Gallery, ClearCollect the original collection, and recreated with the new textboxes in the collection. I created a button, and OnSelect I added:
ClearCollect(
ExcellData, //Collection I'm using
ForAll(
ImpactSummaryFields.AllItems As Items, //This is the Gallery
{
State: Items.StateField.Text,
County: Items.CountyField.Text,
FIP: Items.FIPSField.Text,
MFN: Items.MapFileNameField.Text,
Crop: Items.CropField.Text,
SubCounty: Items.SubCountyField.Text,
CurrentAcres: Items.CurrentAcresField.Text,
ProposedAcres: Items.ProposedAcresField.Text,
Percent: Items.PercentageCounty.Text,
CurrentFSN: Items.CurrentNoFSN.Text,
ProposedFSN: Items.ProposedNoFSN.Text,
ChangedFSN: Items.ChangeNoFSN.Text,
CurrentRate: Items.CurrentRate.Text,
ProposedRate: Items.ProposedRate.Text,
}
)
);
When I click on the button the updates are not added, and some of the rows are removed. What am I doing wrong? Is this even possible?
Thanks.