cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate II
Advocate II

Update gallery items that are filtered by "GroupBy"

AndrewValenzuel_0-1599857001438.png

My gallery is filtering a SP list.  I used "GroupBy" to sum the quantity of the items that need ordering.  I need to be able to select the grouped items via a check box and then change their order status to "Ordered".  How can I accomplish this?  

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User II
Dual Super User II

@AndrewValenzuel 

 

Can you try to update the expression as:

 

ForAll(GalleryName.AllItems, If(CheckBoxName.Value, UpdateIf(DataSourceName, ColumntoIdentity = ControltoDisplay.Text,{Status:"Ordered"})))

 

Here, you need to replace the typos with the actual name of control and columns.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Dual Super User II
Dual Super User II

@AndrewValenzuel 

 

Can you try to update the expression as:

 

ForAll(GalleryName.AllItems, If(CheckBoxName.Value, UpdateIf(DataSourceName, ColumntoIdentity = ControltoDisplay.Text,{Status:"Ordered"})))

 

Here, you need to replace the typos with the actual name of control and columns.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Thanks.  For those of you curious, here is the code:  ForAll(BrowseGallery1.AllItems, If(Checkbox1.Value = true, UpdateIf(OrdersPending,PartNumber=BrowseGallery1.Selected.PartNumber,{OrderStatus:"Ordered"}))) 

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (74,454)