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

Loading from a gallery

How can I get my gallery to load my colour that its saved.

Powerappssucks_0-1628842557242.png

 

 

Right now it saves the colour of the sliders in a gallery but I want it to be able to load it when I click the arrow. Once the arrow is clicked it needs to change the sliders to the position they were in when it was saved.

 

Add Item Code:

 

Collect( MyItems, { Item1: Slider1.Value, Item2: Slider1_2.Value, Item3: Slider1_1.Value } )

 

Save Data Code:

 

SaveData( MyItems, "LocalSavedItems" )

 

Load Data Code:

 

LoadData( MyItems, "LocalSavedItems" )

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @Powerappssucks ,

 

Please try and add below formula OnSelect of the arrow:

ClearCollect(colTemp,ThisItem)

 

Default of Slider1:

First(colTemp).Item1

Default of Slider2:

First(colTemp).Item2

Default of Slider3:

First(colTemp).Item3

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

 

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @Powerappssucks ,

 

Please try and add below formula OnSelect of the arrow:

ClearCollect(colTemp,ThisItem)

 

Default of Slider1:

First(colTemp).Item1

Default of Slider2:

First(colTemp).Item2

Default of Slider3:

First(colTemp).Item3

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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