Hi
Can anyone help please?
Is there a more efficient way to update multiple records? I am currently showing a table inside a Gallery and line by line I wish to update a "discount" field. Currently I am using the following:
ForAll(Filter(Gallery2.AllItems,
KitID<>"Crewing"),
Patch(QUOTECOLLECTORS,ThisRecord,
{
Discount: GlobalDiscount.Text,
DISCOUNTED_RATES: (LineRate.Text*GlobalDiscount.Text),
DISCOUNTED_TOTALS: (LineRate.Text*(1-GlobalDiscount.Text))*Chargeabledays.Text
}
));
This is taking about 10 seconds though to work through each line. Is there a more efficient way? I thought about carrying the ForAll on a local Collection and then patching this back to the data source in one, but I don't seem to be able to do this?
Many thanks!