cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

CDS Lookup Field on Combo Box returning blank

I have a lookup field on the Account entity that references a custom entity called Item Group. On my app, I have a combo box that lists the account and a label that should display the Name field on from Item group based on the selected account. The problem is the label is not populating with any text even though the selected Account has a value in the lookup. I have tried to set my Text property using the following formulas and none of them work

ComboBox1.Selected.'Item Group'.Name

Concat(ComboBox1.SelectedItems, 'Item Group'.Name)

 

If I try to select any other field on the account e.g. ComboBox1.Selected.'Account Name', that works properly. It seems not to work if the field is a Lookup

I also tried the same with a Dropdown box and set the label text to Dropdown1.Selected.'Item Group'.Name and this works as expected. It also works if a have my accounts in a Gallery and the text of the label is set to Gallery1.Selected.'Item Group'.Name

 

Is there something about the Combo box control that causes it not work for Lookup fields?

 

1 REPLY 1
Highlighted
Super User
Super User

Re: CDS Lookup Field on Combo Box returning blank

Try:

On Combobox item:
Choices(EntityName.'Item Group')

Then in the textbox:
Combobox1.'Item Group'.Value

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,256)