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 / How to get Library Ima...
Power Apps
Answered

How to get Library Image to Display in Gallery

(0) ShareShare
ReportReport
Posted on by 5,345 Moderator

I have Gallery1 with a summary of item from SPList1.

I have Gallery2 with the detail of the item from SPList1, as chosen by user in Gallery1.

Gallery1 has an 'Edit' icon and an 'Add' icon. The 'Edit' icon has Set(varEditPO, ThisItem), which populates and fields in Gallery2 with specific information from SPList1.

I also want the ability for the user to be able to create a new purchase order, using limited information from SPList1, by clicking the 'Add' icon in Gallery1.

Can the items property of Gallery2 have a reference to two different inputs?

I've tried to add a Set(varNewPO, "") in the 'Add' icon of Gallery1 and then put both variables in the Gallery2 items (such as: varEditPO || varNewPO), but I got an error.

Is what I want to do possible?

Goal: varEditPO returns (with appropriate 'ThisItem' in fields Gallery2) all said data.
         varNewPO returns minimal data, as determined by additional coding in Gallery2.

Phineas_3-1701546321009.png

 

 

 

 

Categories:
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Phineas ,

     

    Do you want to gallery2 display blank when "Add" icon is clicked?

    Please try this:

    OnSelect of "Add" icon:

    Set(varEditPO,Blank())

    For Gallery2 items:

    varEditPO

     

    Best regards,

    Rimmon

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard