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

Create a variable within gallery (social feed)

Hello,

 

I am trying to set a variable (set(A, ThisItem.AAD). This item is shown in a gallery (social feed). This gallery is filtered and will only show 1 item. I can set the variable with the OnSelect function, however, it is not intuitive to click on this item and therefore not reliable. Are there any other ways to set the value of the variable A within the gallery?

 

Best regards,

Dennis

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@DennisJumped 

If your gallery will only have 1 item in it...then why set a variable?

You can reference the Gallery at any point in your App  -  First(yourGallery.AllItems).AAD

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

1 REPLY 1
RandyHayes
Super User
Super User

@DennisJumped 

If your gallery will only have 1 item in it...then why set a variable?

You can reference the Gallery at any point in your App  -  First(yourGallery.AllItems).AAD

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,315)