web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Update Selected Items ...
Power Apps
Unanswered

Update Selected Items of Combobox if item is removed from collection

(0) ShareShare
ReportReport
Posted on by 95

i have a combobox and gallery that i want to mirror each other. Firstly when an item is selected on the combobox i want the collection to be updated. on the other side, when an item is removed from the collection i also want the spectic item o be deselected on the combobox. 
i have only go one side of the solution working, still can't figure how to deselect an item if it is removed from the collection

OnChange of Combox

 

Clear(col_Terms);
Collect(col_Terms,ComboBox1.SelectedItems.Label)

 

items property of Gallery

 

col_Terms

 

Delete item from gallery

 

Remove(col_Terms,{Label: Gallery1.Selected.Label})

 

i just need a way to deselect the deleted item from the combobox. Any ideas

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Gottijay1999 

    You could use Reset(ComboBoxX) in the gallery but that will remove all of the selected items and the user would have to reselect them from the collection. 

  • Gottijay1999 Profile Picture
    95 on at

    @Drrickryp I was looking in the way of a symbiotic relationship between the gallery and the combo box, without the user having to reselect items if they are deleted.
    is it possible?

  • Verified answer
    Gottijay1999 Profile Picture
    95 on at

    @Drrickryp actually your idea was perfect, i just need to put the collection in the defaultselecteditems property, which means that whenever you reset you get the current value of collection selected.

    thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard