cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Daniel_
Frequent Visitor

Gallery.Selected.Date lost after "OnSelect" on gallery item

Hello.

 

I had a wierd experience in PowerApps today. After selecting a gallery item, I use the "Gallery.Selected.Item" as input to a form on the next page.

 

The variable in Gallery.Selected.Item was lost after a few seconds each time. After refreshing powerapps, this problem has not been seen afterwards.

 

Anyone who tried this before?

 

Thanks in advance,

 

Daniel.

1 ACCEPTED SOLUTION

Accepted Solutions


@v-monli-msft wrote:

Hi @Daniel_ ,

 

Usually we use below formula for the Item property of the form control:

Gallery.Selected

Please try to use this formula instead and test again.

 

Regards,

Mona


Hello, I used that for all my gallerys in the app. However, when clicking quickly around the gallery this was not precise, as it sometimes lost the content. Instead I use SET(var,gallery.selected) as this is way more stable.

 

BR. Daniel

View solution in original post

2 REPLIES 2
v-monli-msft
Community Support
Community Support

Hi @Daniel_ ,

 

Usually we use below formula for the Item property of the form control:

Gallery.Selected

Please try to use this formula instead and test again.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


@v-monli-msft wrote:

Hi @Daniel_ ,

 

Usually we use below formula for the Item property of the form control:

Gallery.Selected

Please try to use this formula instead and test again.

 

Regards,

Mona


Hello, I used that for all my gallerys in the app. However, when clicking quickly around the gallery this was not precise, as it sometimes lost the content. Instead I use SET(var,gallery.selected) as this is way more stable.

 

BR. Daniel

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,797)