Sometimes it’s needed that you update all items within a actual gallery view – e.g. archive all records:
ForAll(
LvInvoiceDetail.AllItems
,Patch(
'[dbo].[Finance.Wf.InvoiceDetail]',
ThisRecord,
{
Status: "archived"
}
)
);
Refresh('[dbo].[Finance.Wf.InvoiceDetail]')
Code-Sprache: JavaScript (javascript)
There are other options using the “Update” command – anyhow, as I only needed the items of the current gallery and the list is usually not longer than up to 10 details, this does the job!