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 / Display values from ga...
Power Apps
Answered

Display values from gallery in a popup

(0) ShareShare
ReportReport
Posted on by 559

Hi All,

I have a dashboard where all the data from 4 different SharePoint list is combined by group by and get displayed in the gallery. The gallery used in the Dashboard is two-level (where the outer gallery contains DD names and the inner gallery contains the projects under the respective DD to be displayed. now I have a requirement where when the "More Details" button is pressed in the gallery a popup must get displayed containing three columns from the inner gallery. (Last updated by, DM approval & DD Approval). For each item in the gallery the popup containing the columns will vary. 

Last updated by - Name of the person who recently made changes.

DM Approval & DD Approval - this field gets updated based on the flow (for e.g. - there are three values each Submitted, To be defined and completed. Submitted has one icon, completed has one icon and To be refined has one icon).

I need to display these three field in the popup when More details button is clicked, and the values will vary based on each item clicked in the gallery. I have attached the screenshot for the same. 

 

Any help on this would be greatly appreciated. Thanks in advance.

Screenshot (13)_2.png
Screenshot (12)_21.png
Categories:
I have the same question (0)
  • Verified answer
    Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Uthhra ,

     

    You can either pass the values to those on the pop-up controls depending such as label, text, dropdown, etc as follows:

    Method 1: Reference item directly as 

    Gallery.Selected.' DM approval'.FullName
    //OR
    Gallery.Selected.' DM approval'.DisplayName

     

    Method 2: Pass as variables as when clicked on button "More Details" as

    UpdateContext({TogglePopup: true, varApprover: Gallery.Selected.'DM approval'});
    
    //Then reference in your control as
    varApprover.DisplayName

     

    Hope this helps

  • Sri Profile Picture
    559 on at

    Hi @Ethan_R ,

    If I directly give using the first method as DDGallery.Selected.Modifiedby in the label in the Popup.

    the gallery will have different projects for each DD name. but when I click on the More details button it gives me only the first name of the person in the gallery even though I click different values. At the end of the row in the gallery for each project the values must vary but it's returning only the first name of the person.

     

    Second method:

    After assigning variable on the button, I have given as Update Context ({popupmoredetails: true, varlastupdatedby: DDGallery.Selected.Modifiedby})

    And in the popup, I have added a label and text input and tried it on both, but I am getting error. 

    I have attached screenshot for both scenarios.

    Screenshot (16)_1.png
    Screenshot (15)_1.png
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Uthhra ,

     

    If you are using Editable grid and you made changes on the value.

    Until the record is not been saved you will get old record. 

    Instead you can pass Dropdown value instead of Gallery Selected if you want unsaved item as well.

     

    Note: If you won't saved record then your changes will not be saved.

     

    Hope this makes sense

  • Sri Profile Picture
    559 on at

    Hi @Ethan_R 

    The gallery values in dashboard are saved values from the SharePoint list. Only I need to display the values in the Popup based on each project selected.

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Uthhra ,

     

    When you add a dot after "varlastupdatedby" do you get suggestions from the App?

    You will get list of columns to choose from. 

    Add appropriate value 

  • Sri Profile Picture
    559 on at

    Hi @Ethan_R ,

    On More details button I gave as this:

    UpdateContext({Popup: true, varlastupdatedby: Gallery.Selected.'DM approval'})

    and added a label in the Popup and just gave the variable name "varlastupdatedby" in the label and its working now.

    Thank you so much.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard