cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Racheli
Helper V
Helper V

Record value for combo box

Racheli_0-1629719725511.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

@Racheli - Can I offer an other approach, such as hiding the "zz combo box" and displaying zz (green border) in a label in the same location, depending on whether the Style combo box value is empty or not? Does it work for you? If that's the case, you can use the code below.

 

In zzcombobox -> visible property

If(!IsBlank(StyleComboBox.Selected.Value), false, true)

 

In zzLabel -> visible property

!zzcombobox.Visible 

 

View solution in original post

11 REPLIES 11
PG_WorXz10
Resident Rockstar
Resident Rockstar

Hi @Racheli ,

 

Is it a lookup field ?

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

What do you mean?

It is a combo box - its default.

@Racheli 

The items property of the comboBox is it holding Sharepoint lookup columns or just a text value ?

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

Is this answer your question:

Racheli_0-1629720243908.png

 

Hi @Racheli ,

 

Would it be possible for you to check the column StandardInventStyleId is a lookup column in database or a choice field. 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

It is a  lookup column in database

Ashwin7104
Super User
Super User

@Racheli - Please try below syntax to get value from combo box. In case if it accepts multiple selection, then its  StyleComboBox.SelectedItems

 

StyleComboBox.Selected.Value

 

There are 2 combo box.

The right one is "zz combo box"" and the left one is "style combo box".

They are both relate to some products list from the Fin & Ops.

I want,  that when I choose a product style from the "style combo box" the "zz combo box " will be disabled and the item number (this is the zz) of the product will be shown.

Actually, I already have the zz it is shown beneath there in the green border.

Racheli_0-1629721802178.png

But, it doesn't let me to anything but a record.

Hi @Racheli ,

 

Lookup columns have Value ID pair.  Is there any way you can lookup the ID based on the value from the Lookup table itself ?

That is why the error message says expected a record value.

Something like below code might work in your case.

 {
                        Id: Lookup(OrignalDataSource,YourValueColumnName=CodeItemBase_1.Text).ID,
                        Value:CodeItemBase_1.Text
               }

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,635)