cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AndrewValenzuel
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
yashag2255
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
yashag2255
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (66,344)