cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DavidLozzi Advocate II
Advocate II

Re: Screen new property 'LoadingSpinner'

Do we have an ETA on when this will be functional?

Lozzi
slalom
Highlighted
Anonymous
Not applicable

Re: Screen new property 'LoadingSpinner'

I'm not sure I'm understanding what this is supposed to be used for. I'm looking for a spinner to show while I click a refresh, and hide once it's complete.

DTreg1 Advocate III
Advocate III

Re: Screen new property 'LoadingSpinner'

I believe MS is working on integrating this directly into the app. In the meantime, here is the workaround that I've found works pretty well:

 

  1. loading.io Website to create loading/spinning gifs to be used
    1. create gif, upload to media bank in app (File->Media->Browse->[attach gif])
  2. Insert gif on page
    1. Insert->Media->Image
    2. Set image property to gif name
    3. Set on visible property to context name (for example) "Loading" (without quotes)
    4. Set the PAGE On Visible property to "UpdateContext({Loading:false})"
    5. Set your control (refresh button) OnSelect, start your OnSelect statement with UpdateContext({Loading:true}), Then your refresh statement, then end with UpdateContext({Loading:false}). If you have a navigation action at the end, the last updatecontext can just be included in that.
      1. IE:
      2. OnSelect->UpdateContext({Loading:true}); Refresh('database');UpdateContext(Loading:false})
      3. or
      4. OnSelect->UpdateContext({Loading:true}); Refresh('database');Naviagte([screen name],none,{Loading:false})
fbxiii Helper IV
Helper IV

Re: Screen new property 'LoadingSpinner'

I've also found this new feature and have applied it to a couple of slow loading screens in my App.  I can't see what the difference between the Data and Controls setting is though.  At least it is more prominent than the 'marching ants' at the top of the screen.

eag768 Advocate II
Advocate II

Re: Screen new property 'LoadingSpinner'

How were you able to get it working??

fbxiii Helper IV
Helper IV

Re: Screen new property 'LoadingSpinner'

Go to the Screen's advanced settings and put LoadingSpinner.Data or LoadingSpinner.Controls in the Loading Spinner property.

 

I'm still none the wiser to the difference though.

eag768 Advocate II
Advocate II

Re: Screen new property 'LoadingSpinner'

Weird... it doesn't do anything when I do that. >_<

fbxiii Helper IV
Helper IV

Re: Screen new property 'LoadingSpinner'

It doesn't last long, maybe you are just missing it?  It seems to stop spinning before the 'marching ants' and the loading of data does too.  I'm not 100% sure it's fully functional yet.

DTreg1 Advocate III
Advocate III

Re: Screen new property 'LoadingSpinner'

Honestly, I have found my workaround to work better than the generic one being provided and still use it. With the work around, you can surround exactly which refresh/collects you want to show a loading screen for. If you don't want to include something, you would just put it outside the two update contexts. Everything runs in order.

 

  1. loading.io Website to create loading/spinning gifs to be used
    1. create gif, upload to media bank in app (File->Media->Browse->[attach gif])
  2. Insert gif on page
    1. Insert->Media->Image
    2. Set image property to gif name
    3. Set on visible property to context name (for example) "Loading" (without quotes)
    4. Set the PAGE On Visible property to "UpdateContext({Loading:false})"
    5. Set your control (refresh button) OnSelect, start your OnSelect statement with UpdateContext({Loading:true}), Then your refresh statement, then end with UpdateContext({Loading:false}). If you have a navigation action at the end, the last updatecontext can just be included in that.
      1.  IE:
      2. OnSelect->UpdateContext({Loading:true}); Refresh('database');UpdateContext(Loading:false})
      3. or
      4. OnSelect->UpdateContext({Loading:true}); Refresh('database');Navigate([screen name],none,{Loading:false})
eag768 Advocate II
Advocate II

Re: Screen new property 'LoadingSpinner'

Thanks very much!

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (454)