cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Powerappssucks
Advocate I
Advocate I

Saving with a variable

I'm trying to save a slider value using a variable and load it again, however it needs to be saved locally. The one on the left in the picture needs to save all of the sliders values and the one on the right needs to load the numbers. Need some serious help please. 

9 REPLIES 9
CNT
Super User
Super User

@Powerappssucks To save the values, you need to use some persistent storage like Share Point List. Are you using one?

I was told to store it locally rather than with a sharepoint

@Powerappssucks "store it locally" locally, where? in a mobile device, browser, PC?

Browser

@Powerappssucks There are SaveData & LoadData functions to add simple offline capabilities to PowerApps. 

You can't use these functions inside a browser when:

  • Authoring the app in Power Apps Studio.
  • Running the app in the web player.

So if i use this and test on my phone it should work?

 

@CNT I might be asking a lot here but I can't wrap my head around it still, cloud you give me some insight to what code I need to put in my buttons?

@Powerappssucks You can store all the slider values in a collection,

ClearCollect(colSliderValues,{valueSlider1:slider1.Value,valueSlider2:slider2.Value,valueSlider2:slider2.Value})

 

Then to store the collection in the cache,

SaveDate(colSliderValues, "cacheSlideValues")

To read the values back,

LoadDate(colSliderValues, "cacheSlideValues")

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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,815)