I've created a loading screen for my app as when the user changes the quantity of an item, it can take a few seconds so I didn't want them clicking buttons while the app was updating.
I set a variable
varShowSpinner
and set the Visible on the components of the loading screen to this variable.
Then on the button that the user clicks to remove the item I have set it as follows
Set(varShowSpinner, true);
With({_item: varRecord},
UpdateIf(Table1,
Name = PartName.Text,
{Qty: Value(CurrentStock.Text) - Value(OrderQuantityText.Text)
});
If(Value(CurrentStock.Text) - Value(OrderQuantityText.Text) <= 0, Remove([@Table1], _item);
Navigate(SuccessRemoved,ScreenTransition.Fade);
Reset(OrderQuantityText);
Set(varShowSpinner, false);
));
But when I click the button, it seems to just always keep the loading screen on. It also never navigates to the "SuccessRemoved" screen or resets the text box.
This had worked for me a few days ago and did what I expected but for some reason, it wont work today. Is it something to do with the indentation of the last three lines ??