Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Gallery click icon, then Popus Screen, show ThisItems.

(0) ShareShare
ReportReport
Posted on by 438

I'm trying to figure it out. I've set up a variable named 'varStudentTransactionHistory.' When the gallery displays the list, I want to click an icon, which will then open a popup screen to show the full information for the selected item using 'ThisItem'.

 

Screenshot 2023-11-07 131213.pngScreenshot 2023-11-07 131136.png

  • Ali_Sheraz_77 Profile Picture
    141 on at
    Re: Gallery click icon, then Popus Screen, show ThisItems.

    @dylandavis09 

    it is very simple 

    first picture is ok 

    in second picture on form items property use this code

     

    Student_Transcation_History_Gallery.Selected

     

     like this image 

    Power-Apps (1) 222.png

     

    cancel icon is ok it will minimize the popup form

    Please give a thumbs up if this information is helpful.

  • dylandavis09 Profile Picture
    438 on at
    Re: Gallery click icon, then Popus Screen, show ThisItems.

    In the first picture is corrected with function. Then...

    Screenshot 2023-11-07 154306.png

     

    In the second picture, what function is supposed to be placed in it? Please give me a correct one. Click on "Student:" or what? I need to get steps more information.

    Screenshot 2023-11-07 154606.png

     

    Then, close icon is function:

    Screenshot 2023-11-07 154826.png

     

     

    HELP, @LaurensM@v-mengmli-msft@Rhiassuring 

     

  • Ali_Sheraz_77 Profile Picture
    141 on at
    Re: Gallery click icon, then Popus Screen, show ThisItems.

    to show selected data from gallery we use just this code on items property of form

     

    Student_Transcation_History_Gallery.Selected

     

    we set variable on close button to close that screen use this  code on OnSelect property of close button

     

    Set(varStudentTransactionHistory,false)

     

     

  • dylandavis09 Profile Picture
    438 on at
    Re: Gallery click icon, then Popus Screen, show ThisItems.

    OK, which one that should I put in? I have a bit confused.

  • Ali_Sheraz_77 Profile Picture
    141 on at
    Re: Gallery click icon, then Popus Screen, show ThisItems.

    try this code on items property of form

     

    Galleryname.Selected

     

     

    and set your variable on close button to set form close functionality 

  • dylandavis09 Profile Picture
    438 on at
    Re: Gallery click icon, then Popus Screen, show ThisItems.

    Correctly?

    Student_Transcation_History_Gallery.Selected;Set(varStudentTransactionHistory, true)

     There has no error, seem worked. what's the next? 

  • Ali_Sheraz_77 Profile Picture
    141 on at
    Re: Gallery click icon, then Popus Screen, show ThisItems.

    Then use this code on items property of form in which you want to show the selected student data 

    YourGslleryname.Selected

     

  • dylandavis09 Profile Picture
    438 on at
    Re: Gallery click icon, then Popus Screen, show ThisItems.

    Yes, I did created: Set(varStudentTransactionHistory, true) then... (see below)

     

    "Student Name: "&Lookup_Transaction_History_Gallery.Selected.'Student Name'

    @Ali_Sheraz_77  

  • Ali_Sheraz_77 Profile Picture
    141 on at
    Re: Gallery click icon, then Popus Screen, show ThisItems.

    Hi, @dylandavis09 
    [

    Have you created this pop screen?

    if yes then use the code given below

    on the items property of form use this code 

     

    Gallery2.Selected

     

    Data source remain same for both gallery and form

    ]


    Please give a thumbs up if this information is helpful.

    Best regards,
    Ali Sheraz

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard