Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 8Ioo1c8y7FZa3XC3lQGNoa
Power Apps - Building Power Apps
Unanswered

Saving with a variable

Like (0) ShareShare
ReportReport
Posted on 11 Aug 2021 09:17:58 by 47

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. 

Categories:
  • CNT Profile Picture
    10,919 Super User 2025 Season 1 on 11 Aug 2021 at 13:20:46
    Re: Saving with a variable

    @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")

  • Powerappssucks Profile Picture
    47 on 11 Aug 2021 at 12:57:03
    Re: Saving with a variable

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

  • CNT Profile Picture
    10,919 Super User 2025 Season 1 on 11 Aug 2021 at 12:43:47
  • Powerappssucks Profile Picture
    47 on 11 Aug 2021 at 12:42:44
    Re: Saving with a variable

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

     

  • CNT Profile Picture
    10,919 Super User 2025 Season 1 on 11 Aug 2021 at 12:41:37
    Re: Saving with a variable

    @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.
  • Powerappssucks Profile Picture
    47 on 11 Aug 2021 at 12:37:49
    Re: Saving with a variable

    Browser

  • CNT Profile Picture
    10,919 Super User 2025 Season 1 on 11 Aug 2021 at 12:35:50
    Re: Saving with a variable

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

  • Powerappssucks Profile Picture
    47 on 11 Aug 2021 at 12:30:30
    Re: Saving with a variable

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

  • CNT Profile Picture
    10,919 Super User 2025 Season 1 on 11 Aug 2021 at 12:28:56
    Re: Saving with a variable

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 298 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 169

#3
stampcoin Profile Picture

stampcoin 130

Overall leaderboard
Loading started