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

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (59,307)