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 / Issue with Button and ...
Power Apps
Unanswered

Issue with Button and Image Displaying

(0) ShareShare
ReportReport
Posted on by 99

I have an app and have installed buttons to change the records in the gallery.  I previously used a drop down, but since I had to move the app to SP from Excel, I figured I'd make some other improvements.  The records are appearing in the gallery when I select the applicable button but two other things are not working correctly and I don't know how to fix them.

 

The New Reviews button "OnSelect" has "UpdateContect ({locSelectedButton:1})".  This displays records that are set at status 1 in my SP List.  I have a second button for Reassessments that works the same way.  Finally, I have an image that displays when the gallery is empty that says "you have no charts to review at this time".  It's Visible setting is "If (IsBlank(Gallery8_3),true,false)" so that when the gallery has no records, the image should come up.  It's always worked correctly in the past.

 

First issue:  When I click either button, the gallery shows records but the image pops up.

Second issue:  I want the form to load the first item from the gallery automatically (which it's always done before with no special formula).  If I click the button a second time OR I click the arrow button beside the gallery item, the form loads.

 

TammyGarris_1-1625774984375.png

TammyGarris_2-1625775034139.png

TammyGarris_3-1625775059784.png

 

 

 

Categories:
I have the same question (0)
  • TammyGarris Profile Picture
    99 on at

    @RandyHayes You've helped in the past.  Any insight?

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @TammyGarris,

    For the first issue set Visible property of pop-up control to IsEmpty(Gallery8_3.AllItems).

    For the second issue , you need to set the Item property of the form to:

    LookUp(yoursharepointlist, ID=Gallery.Selected.ID)

     

    Hope it helps !

  • TammyGarris Profile Picture
    99 on at

    First issue resolved. 

    Second issue still happening.  I have to click the button twice OR click the arrow for the record to load to the form.

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Can you show me the code from OnSelect property of the Gallery ?

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard