cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KarlAddi
Helper I
Helper I

Loading Screen not working

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 ?? 

1 ACCEPTED SOLUTION

Accepted Solutions
Ramole
Memorable Member
Memorable Member

@KarlAddi 

 

Spinners and Progress Bars 

Thank you
If this post helps, then please consider Accept it as the solution to help the others and consider giving it a "Thumbs Up."

View solution in original post

3 REPLIES 3
Ramole
Memorable Member
Memorable Member

Hi @KarlAddi 

 

Please fellow this post as will explain in to details also different options 

Loading Spinners, Saving Spinners and Progress Bars 

Thank you
If this post helps, then please consider Accept it as the solution to help the others and consider giving it a "Thumbs Up."

Hi @Ramole

 

Thanks for the reply, Unfortuanlly the link you have provided doesn't work

Ramole
Memorable Member
Memorable Member

@KarlAddi 

 

Spinners and Progress Bars 

Thank you
If this post helps, then please consider Accept it as the solution to help the others and consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,405)