Hey all,
I have some variables that toggle the visibility of some loading gifs that I set before and after blocks of text. Most of the time it works well, but in a couple cases the spinners never show up. I think that the code begins processing before it actually sets the variables to the values. Here's one such block of code.
Set(LoadingVisible, true);
Set(PopUpVisible, true);
//Reset the Amounts
ForAll(Filter(colFutLineItems, IsBlank(UnsavedAmount) || Round(UnsavedAmount,0) <> Round(TotalAmountForecast,0)) As FutQLineItems,
Patch(colFutLineItems,FutQLineItems,{UnsavedAmount: Coalesce(FutQLineItems.TotalAmountForecast,0)})
);
Set(LoadingVisible, false);
Set(PopUpVisible, false);
It works - like it does its job - but it doesn't seem to allow the variables to properly set before it dives into the ForAll loop (which stalls everything for 3-5 seconds). Is there a way for me to force these variables to be evaluated fully before moving on to the ForAll? Thoughts?