Hi @Anonymous ,
Could you please share a bit more about your scenario?
Could you please show more details about the variable that you mentioned? Could you please share more details about the formula you used within the Items property of the second Gallery? Does the Gallery7 represent the second Gallery?
Based on the formula you provided, I think you use this Patch formula to update the Order Items status in your second Gallery (Gallery7), is it true?
Based on the needs that you mentioned, I think a Timer control could achieve your needs. I have made a test on my side, please take a try with the following workaround:
Add a Timer control in your app, set the Duration property to following:
1000
set the AutoStart and Repeat property to following:
true
set the OnTimerEnd property of the Timer to following:
If(
CountRows(Filter(Gallery7.AllItems, ItemInOrderStatus = First(Gallery7.AllItems).ItemInOrderStatus)) = CountRows(Gallery7.AllItems),
Patch(
'Orders List',
FirstGallery.Selected, /* or type LookUp('Orders List', ID = FirstGallery.Selected.ID) */
{
OrderStatus: First(Gallery7.AllItems).ItemInOrderStatus /* <-- OrderStatus represents the Status column in your Orders List, which is used to store the status value */
}
)
)
Note: The FirstGallery represents the first Gallery in your app, which connects to the Orders SP List.
If the OrderStatus column in your Orders List is Choice type column, please consider modify above formula as below:
If(
CountRows(Filter(Gallery7.AllItems, ItemInOrderStatus = First(Gallery7.AllItems).ItemInOrderStatus)) = CountRows(Gallery7.AllItems),
Patch(
'Orders List',
FirstGallery.Selected, /* or type LookUp('Orders List', ID = FirstGallery.Selected.ID) */
{
OrderStatus: {
Value: First(Gallery7.AllItems).ItemInOrderStatus
}
}
)
)
Set the Visible proeprty of the Timer to following:
false
Please consider take a try with above solution, check if the issue is solved.
Best regards,