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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combo Box in Editable ...
Power Apps
Unanswered

Combo Box in Editable Gallery with Collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm not sure if this is even possible.

 

I am trying to create an editable gallery with a collection as its source. This gallery has save and edit button for each line item which trigger variables "showSaveButton" and "editButtonPressed". These variables control display modes of elements as a typical editable gallery does. The problem area is a single selection combo box in the gallery that has an Items field that points to a SharePoint List. I'm open to all suggestions as I'm almost out of ideas.

 

Problem 1: When I save a line item, a new line item is patched into the collection and works properly. However, the combo box in the previously saved line item does not show the selection saved. It is apparent why it doesn't show as the source of the gallery is the collection. The only work around I can see is using a label or text input that is visible when the "showSaveButton" variable is False. Seems like there should be a better solution that would only need to utilize the existing combo box. Thoughts?

 

Problem 2: When I click the edit button for a given line item in the gallery, the value in the combo box is blank. Again due to the gallery source the reason why is apparent. If I could save the entire selected database record in the collection when the save button is pressed and reference it as a default value when the edit button is pressed that could work. I'm just not sure how to do this. Or maybe another solution would be better.

 

Let me know if you have any questions and thanks for any and all help.

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

    Hi @Anonymous 

    Normally, patching is done to an actual datasource and the collection is reconstructed using a ClearCollect().  Have you tried refreshing the combobox control after the Patch().  

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The patch to the data source needs to be done after all user modifications are complete (i.e. save, edit, remove). If there was a way to patch the entire selected record to a field within the collection that would be helpful. But I also need to reference that as mentioned in my first post.

  • Sim_S Profile Picture
    on at

    Hi, i am facing a very similar issue with the combo box in the editable gallery, wherein the combo box value is getting reset on adding a new line dynamically. How were you able to resolve it or came across any workaround , other than adding label? would appreciate the quick reply, if possible. thanks in advance!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard