Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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.

Categories:
  • Sri Profile Picture
    559 on at
    Re: Display values from gallery in a popup

    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.

     

  • Ethan_009 Profile Picture
    4,838 Super User 2025 Season 1 on at
    Re: Display values from gallery in a popup

    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
    Re: Display values from gallery in a popup

    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 Super User 2025 Season 1 on at
    Re: Display values from gallery in a popup

    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
    Re: Display values from gallery in a popup

    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.

  • Verified answer
    Ethan_009 Profile Picture
    4,838 Super User 2025 Season 1 on at
    Re: Display values from gallery in a popup

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,631 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,991 Most Valuable Professional

Leaderboard