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 / Selected item in drop ...
Power Apps
Answered

Selected item in drop down dissapear

(0) ShareShare
ReportReport
Posted on by 4

Hello to everybody!

I created editable grid by Reza Dorani example which is connected to my SP list. In app there is a dropdown(inserted into the vertical gallery) with items from excel(table is stored in colorganization collection) inserted(there are more than 10 000 items to choose i made it by dividing my excel table into several tables). When i click on the item in the dropdown, my choice immediately(after 1 sec) become blank and nothing is chosen, it is happening before clicking any button. 

My properties: dropdown: items: colorganization, OnChange: Select(parent), SearchFields:["Account_name"], DefaultSelectedItems:  

ThisItem.Организация;

Gallery properties:

OnSelect:
Patch(
    colGridData;
    ThisItem;
    {
        Организация: {Value: Organization.Selected.Account_Name};
        Тип_события: EventType.Selected;
        Статус_события: EventStatus.Selected;
        Дата_начала: StartDate.SelectedDate;
        Дата_окончания: FinishDate.SelectedDate;
        Культура: Hybrid.SelectedItems;
        'Результат встречи': Result.Text
    }
)

My list in SP looks like(in the red circle there is the problematic column):

ks166_0-1711979521536.png

What strange i have noticed else is that my sp list in the collection has strange name of the columns starting with OData_x04...

ks166_1-1711980138986.png

 Please help me to solve this problem. Thank you in advance!

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @ks166 ,

     

    dropdown: OnChange: Select(parent)

    Gallery OnSelect: Patch()

     

    Every time you select an item from the ComboBox, it selects the item of current line AND trigger the Patch function. Every time an item gets updated to the data source of Gallery, Gallery refreshes. To make the selected item in the Combo box does not disappear, the default selected item should be a part of Combo box items. However, ThisItem.Организация is a record because it's from a Choices column. So, please try and set below in DefaultSelectedItems property:

    LookUp(colorganization; 'Account name' = ThisItem.Организация.Value)

     

    Best regards,

  • ks166 Profile Picture
    4 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard