cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GiuseppeFina
Regular Visitor

ComboBox with wrong value or null value in Gallery

I have two tables.

First Table. Customers with two columns Name, IDCountry ie. Kim,001

Second Table Country.   ID, Description. ie 001,'USA'

 

I create a vertical gallery, set Customers as datasource and inserted two input text and 1 ComboBox.

I set

1st input box = name , fine, I can see Kim

2. input box = LookUp(Country,ID=ThisItem.IDCountry,Description) , Fine, I can See USA

3 combox1 =   value = Country, and I was not able to understand how to set  the Defaultselecteditems.

Indeed, the combo is always blank.

 

GiuseppeFina_0-1611580617555.png

I tried inserting a second records in country 002, Canada and in Customers Pialla,001 and changed the defaultselecteditems in

Filter(Country,ID=ThisItem.IDCOUNTRY,Description) and the results was

GiuseppeFina_1-1611580933848.png

The Input ltext is right and the combo box are wrong.

 

Someone can Help me, I will do appreciate. It seems that for the combo box ThisItem is not working as the input text.

Giuseppe

 

 

2 REPLIES 2
flugaoveltem
Resolver III
Resolver III

Hi @GiuseppeFina 

The value of combo1 is going to depend what is the data source in your table. 

If for instance this column is a lookup field your defaultselect property must be a id, value like this: 

 

{
    Id: LookUp(Country,ID=ThisItem.IDCountry,ID)
    Value: LookUp(Country,ID=ThisItem.IDCountry,Value)
}

 

What value combox1 is going to have ? 

@flugaoveltem,

thanks for your quick reply.

As I wrote for the combox1  value = Country, so when I click on the combo box I can see all Values

GiuseppeFina_0-1611583240932.png

 

I implemented your suggestion, (apparently It misses a comma),  but I still cannot see any displayed value in the combo.

 

my aim is to have the same value in the input box and in the combo. Now the input is correct the combo is blank.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (43,651)