cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
carem
Level: Powered On

Display Lookup Column in PowerApps?

I have 2 lists.

- Product: has Product ID (Single Text Field) and Product Name (Single Text Field) Column

- Sale Order: has Product ID Column (lookup Column) and point to the Product ID in Product List. This Lookup Column have an additional Lookup Column point to the Product Name Column

 

I have an Edit Form in Power App: DataSource: Sale Order List.
The Product ID field display by a Card and DatacardValue of this Card (displayed by a Combo Box Control) have the default property:

Items = Choices([@'Sale Order'].ProductID

But this has 2 problems:

- The choice displayed in Combo Box is Product Name, not the Product ID as I want.

- The Choice is not Sort.

- I unlock the Card, changing something and then return the default Formula above. It warning an error "The function Choices has some invalid argument?". But I can still choose the value from the Combo box like the default Card. Please See Below.

Screen Shot 2019-11-29 at 12.55.34 PM.pngUnlocked Card and Default Card

 

Screen Shot 2019-11-29 at 12.55.42 PM.pngItems property of the Card Unlocked

 

Screen Shot 2019-11-29 at 12.55.50 PM.pngItems property of the Default Card

 

How can I solve these problems?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Display Lookup Column in PowerApps?

Hi @carem ,

 

When you create the lookup column in SharePoint, what is the column that you select in this option?

Capture.JPG

 

Did you mean that Product ID is the one that you select for "In this column", and Product Name is the one that you checked for "additional fields"? And also you have checked "Allow multiple values" option? If so, then by default, in edit form, this field should be shown as a combo box control and the options should the Product ID. 

 

What is the formula in Items property of the combo box control that you changed to that cause the error?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Display Lookup Column in PowerApps?

Hi @carem ,

 

When you create the lookup column in SharePoint, what is the column that you select in this option?

Capture.JPG

 

Did you mean that Product ID is the one that you select for "In this column", and Product Name is the one that you checked for "additional fields"? And also you have checked "Allow multiple values" option? If so, then by default, in edit form, this field should be shown as a combo box control and the options should the Product ID. 

 

What is the formula in Items property of the combo box control that you changed to that cause the error?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

carem
Level: Powered On

Re: Display Lookup Column in PowerApps?

Sorry, I picked Product Name is the Column point to.

I fix it and It's normal.

Thanks, @v-monli-msft 

Community Support Team
Community Support Team

Re: Display Lookup Column in PowerApps?

Hi @carem ,

 

Glad that you issue is solved. If you have further issues, please feel free to post in this community.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,800)