web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show selected item in ...
Power Apps
Answered

Show selected item in Gallery in an exploded view in new page, and allow navigation between items?

(0) ShareShare
ReportReport
Posted on by 700

I have a Vertical gallery with an image, description and basic details from a Dataverse Table.

 

I have a second Page where I have also created a gallery, but included more detail and stretched it so that one item is on the screen (Disabled scrollbars)

 

Is there a way to navigate to the new page from the original gallery when an item is selected? 

I thought about making a collection on click of the initial gallery item along with a Navigate to the new page. Then surface the collection variables on the 2nd page. I think would work, but then I'm not sure how I would set the navigation between records ..IE Left and Right arrows with them greyed out if there is no more data is a specific direction.

 

Hope that makes sense?

 

Thank you for any help 🙂

Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    Hi @RandomDept .

     

    Would it not make more sense to Filter the second Gallery based on the selected item in the first Gallery, in order to display a single item?

     

    For example, set the below to the OnSelect property of the first Gallery:

    Set(
     varRecord,
     ThisItem
    );
    Navigate('Your Target Screen')

     

    Then set the below to the Items property of the second Gallery:

     

    Filter(
     'Your Data',
     'Unique ID' = varRecord.'Unique ID'
    )

     

     

    On a separate note, is there a specific reason you do not want to use a DisplayForm or EditForm control to display additional details of the selected Gallery item?

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

  • RandomDept Profile Picture
    700 on at

    Awesome, that did the job.

    Guess I went gallery by default since I had an image 🙂

     

    Is there a way I could then throw in navigation arrows on that 2nd page that would allow me to go between each item?

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @RandomDept you can include Image controls in Forms.

     

    I am not quite understanding the navigation question. Do you simply want to navigate back to the 1st page from the 2nd page?

  • RandomDept Profile Picture
    700 on at

    Thanks @Amik 

    I want to stay on the second page, but allow navigation between records in the gallery (without scroll bars)

  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @RandomDept yes this is possible.

     

    1. In the Gallery in the 2nd screen, expand the Template Size so that it fits the entire Gallery property

    2. Disable Show Scroll Bar

    3. Enable Show Navigation

    4. Set the Items property of this Gallery to the Data Source only (remove the code from the other Solution).

    5. Set the Default property of this Gallery to varRecord.

    Desktop 1.gif

     

    Desktop 2.gif

    Desktop 3.gif

     

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

  • RandomDept Profile Picture
    700 on at

    Champion, thank you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard