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 / Combobox defaultselect...
Power Apps
Unanswered

Combobox defaultselecteditems lookup not working with last item from gallery

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have Gallery with an edit function. Edit sends to Editform with possibility to edit data and save.

I have a combobox to search/change "projects". When I select last item in my gallery and edit, the combobox has no value. If I start by selecting the first item everything works fine. 

Once one selection has been made, everything works fine.

I see that my lookup takes just half of a second to fetch data. 

 

Could i change the way I fill my combobox with the selected data or how would I get around this glitch?

 

Code on edit pencil icon: EditForm(ProjWorkFormE);Navigate(ProjWorkEdit)

Code on DefaultSelectedItems: LookUp('[dbo].[ProjTable]',Number = ThisItem.Number)

 

See capture of behavior in gif below.

 

PowerAppLoopup.gif

Categories:
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @MadW ,

    Could you show me more settings about project combo box ,like the combo box's Items, the datacard's Default, etc?

    The formulas that you showed me have no error.

    Could you tell me how large is your table?

    Are you sure the last item's project value has updated successfully?

    Try to set the DefaultSelectedItems:

    ThisItem.Project

     

     

     

    Best regards, 

  • MadW Profile Picture
    on at

    Hi,

     

    Sorry for my very late response. I was sure I did press send on reply days ago.

     

    Table is very small, maybe 10 rows in it. It is an Azure SQL database.

    Combobox items is: '[dbo].[ProjTable]'

    Datacard default is: ThisItem.Number

     

    Changing default on combobox to ThisItem.Number gives me error. It seems it expects a collection or something.

     

    I am guessing that this error is some combination with fetching data from the SQL server.

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard