Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Multiple Screens - Multiple Galleries - Make Default Selected Gallery Item Change Based on the one selected.

(0) ShareShare
ReportReport
Posted on by

IDK if my topic makes much sense, but here goes:

 

PatrickMcLeanGL_1-1706639503391.png

I have the screen changing depending on the stage of the item selected. So if I selected Grape Quake, it changes to ScreenStage12. This part works, but when it changes to ScreenStage12, the selected gallery item in the new gallery is not the same as the one I selected. No matter what item/screen I am on, I want it so that if I selected Grape Quake (Stage 12) it moves me to ScreenStage12, and automatically selects the Grape Quake item.

 

What I have tried is in the gallery onselect, setting a global variable (MySelected) to "ListItemGallery.Selected" for each gallery, and then setting the default for each gallery to "MySelected". But that doesn't work, it actually makes it so nothing is selected when the screen changes.

Categories:
  • TheRobRush Profile Picture
    TheRobRush 11,121 on at
    Re: Multiple Screens - Multiple Galleries - Make Default Selected Gallery Item Change Based on the one selected.

    try setting OnSelect of first Gallery (not its controls) to

    Set(myItem, ThisItem)

    then the control OnSelect to 

    Select(Parent)

     

    then place a galleyr on same page with the items of

    myItem

     

    then if that works, just add the navigate to the onselect of the gallery and delete the test galleyr

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard