cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
common_user
Helper IV
Helper IV

Select different rows and change value with a single button

Hi guys,

I have a simple problem but I'm new in PowerApps and I need your help.

I want to create a gallery with two button (outside gallery) as you can see in the follow picture.

My gallery is connected to sharePoint list so I can select single dropdown in a row, change value and then save. But I want to select by checkbox more rows and I want to click one time on Confirmed or Rejected button.

Can you help me? Is it possible?

powerApps.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @common_user ,

 

Please try below formula OnSelect of the Confirmed button:

ForAll(
    Filter(
        YourGallery.AllItems, 
        CheckBox.Value = true
    ), 
    Patch(
        DataSource, 
        LookUp(
            DataSource,
            ID = VaLue(ThisItem.IDLabel.Text)
        ),
        {Type:{Value:"Confirmed"}}
    )
)

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @common_user ,

 

Please try below formula OnSelect of the Confirmed button:

ForAll(
    Filter(
        YourGallery.AllItems, 
        CheckBox.Value = true
    ), 
    Patch(
        DataSource, 
        LookUp(
            DataSource,
            ID = VaLue(ThisItem.IDLabel.Text)
        ),
        {Type:{Value:"Confirmed"}}
    )
)

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,265)