cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
forest2002
Helper I
Helper I

Patch all dropdown boxes from a gallery to Sharepoint

Hi Guys,

 

Not sure if this is even possible but I have a gallery with multiple dropdown boxes in a gallery, with each row being a day. Is it possible to make multiple changes to the dropdown boxes across multiple rows and have a button which patches all the changes to the Sharepoint list?

 

My dropdown boxes are choices columns from a Sharepoint list. Currently I've got each dropdown box patching 'Onchange' of the dropdown which works but makes it quite slow if you're doing lots of changes. Or is there even a better option i've not considered?

 

Any advice greatly appreciated

1 REPLY 1
BCLS776
Super User
Super User

Another way to handle this is to add a button or icon that OnSelect saves the entries all at once using Patch() and a ForAll():

ForAll(Gallery1.AllItems As aItem,
    Patch(mySPList, Defaults(mySPList),
    {
        // Patch columns as before, but refer to aItem for scope control
    }
)

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (1,685)