web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 1QlA2Vji6z9ZY6JpybuEsz
Power Apps - Building Power Apps
Answered

Powerapp Gallery Buttons

Like (0) ShareShare
ReportReport
Posted on 6 Dec 2023 09:27:02 by 206

Hello,

I have a gallery on my powerapp with buttons on each gallery entry.  When I press any of the buttons it affects the whole gallery and not just the entry I want to update.  How can I set the buttons so that they only action / update the gallery entry I choose ?

Thanks,

Mick

Categories:
  • Station1901 Profile Picture
    206 on 06 Dec 2023 at 10:28:52
    Re: Powerapp Gallery Buttons

    This works perfectly - thankyou

  • Verified answer
    v-mengmli-msft Profile Picture
    on 06 Dec 2023 at 10:08:55
    Re: Powerapp Gallery Buttons

    Hi @Station1901 ,

     

    Are the controls that show the customer's other options also in the gallery?

    I'm assuming you're doing this, when the value of the variable is "Y", the visible property of the control in the gallery is true.

    The cause of the problem is that controls are using the same variable.

    The best thing to do is to add columns with values of true/false to the data source for each control Visible property in the gallery, and then, when you click the button, update the current values of those columns to true.

    OnSelect:
    Patch(TableName,ThisItem,{VisibleColumn1:true,VisibleColumn2:true})

     And use ThisItem.VisibleColumn on the visible property of controls.

     

    Best regards,

    Rimmon

  • Station1901 Profile Picture
    206 on 06 Dec 2023 at 10:04:36
    Re: Powerapp Gallery Buttons

    CID is a unique identifier for each record in the Gallery and the datasource is a sharepoint list named Cars.  Whenthe Phone icon is pressed it changes the variable to Y the other buttons on that row have their visible setting to only show when the variable is Y which works but it displays the buttons in every row in the gallery when any phone icon is pressed.  Essentially when the variable is set to Y it sets every button on every entry in the gallery visible property to true

  • FazalUrrehman Profile Picture
    131 on 06 Dec 2023 at 09:56:15
    Re: Powerapp Gallery Buttons

    And whats the datasource of the gallery ?/

     

  • FazalUrrehman Profile Picture
    131 on 06 Dec 2023 at 09:54:56
    Re: Powerapp Gallery Buttons

    @Station1901 What does the column CID holds?? 

    And it wont work with variable though

     

  • Station1901 Profile Picture
    206 on 06 Dec 2023 at 09:50:42
    Re: Powerapp Gallery Buttons

    I have a telephone icon on each of the gallery entries. I want the user to press the icon when they have called a customer and then this will then display the other options for that particular customer but when the user presses the telephone icon ALL of the other options display for ALL of the customers in the gallery.  Is there a way to fix this so that if the telephone icon is pressed the buttons only display for that customer.  The code on the 'On Select' option for the telephone icon is
    'Gallery2.Selected.CID;
    Set(gVar_Contact,"Y")'
    The other buttons display when gVar_Contact is set to Y

  • v-mengmli-msft Profile Picture
    on 06 Dec 2023 at 09:36:13
    Re: Powerapp Gallery Buttons

    Hi @Station1901 ,

     

    Could you please show me the formula on the button and what kind of functionality do you want to achieve when you click the button?

    If you want to click the button for an item in the gallery to update the current record, you can do so:

    OnSelect:
    Patch(TableName,ThisItem,{ColumnName:Value})

     

    Best regards

    Rimmon

  • FazalUrrehman Profile Picture
    131 on 06 Dec 2023 at 09:30:32
    Re: Powerapp Gallery Buttons

    @Station1901 Can u provide with the code u have tried so that i can help u better ??

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete