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

UpdateIf with a listbox

Hi All,

 

I have got a record updating if there is a matching record in a table, but I am actually looking at doing the opposite to this. If it finds the item in the table it updates all the other records. My code works to update the record, so what is the opposite to in? I tried NOT but that doesn't work.

 

ForAll(Gallery1.AllItems,
UpdateIf(Mapping, crb20_item in ListBox4.SelectedItemsText.Value, {cr330_item_order: cr330_item_order + 2 }));

 

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hi,

Can you try something like this?

ForAll(Gallery1.AllItems,
UpdateIf(Mapping, !(crb20_item in ListBox4.SelectedItemsText.Value), {cr330_item_order: cr330_item_order + 2 }));

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

3 REPLIES 3
Super User II
Super User II

Hi,

Can you try something like this?

ForAll(Gallery1.AllItems,
UpdateIf(Mapping, !(crb20_item in ListBox4.SelectedItemsText.Value), {cr330_item_order: cr330_item_order + 2 }));

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

Perfect!

 

Thank you 🙂

Glad I could help!

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (6,494)