cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Lookup Dropdown and show table value in textbox

So I have a dropdown populated with a column table "Bds":

 

 

Distinct(Bds,Categoria)

 

 

I want the user to select a category from that dropdown and populate a textbox with data from that same table, for example I have this table example:

CategoriaBd1
Categoria 1Result

As I understood if I use this formula on Default of the Textbox should do the trick but it is not bringing the result:

 

 

LookUp(Bds,
Categoria =
"Dropdown.Selected.Result",
'Bd1')

 

 

It is Looking in Bds table, column Categoria for the selected dropdown result  and it should bring me "Result" As the dropdown is populated within the same table there should be a exact match. What am I doing wrong?

1 ACCEPTED SOLUTION

Accepted Solutions

Use:

LookUp(Bds,Categoria = TextBox1.Text,'Base de datos1')

It means your table is called Bds

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

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.

View solution in original post

8 REPLIES 8
eka24
Super User III
Super User III

In the default of the TextBox, use:

     Dropdown1.Selected.Result

 

Change the Dropdown1 to the actual name of the Dropdown

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

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.

Hi @Anonymous 

@eka24  is correct.  The Distinct() function creates a single column table of unique values from the datasource and renames the column "Result"

Anonymous
Not applicable

But that will bring the exact same value as the dropdown, now If I choose Category 1 in the dropdown it shows Category 1 in the textbox.

I want to choose Category 1 in the dropdown and bring "Result" in the textbox, meaning that the value is in the second column in the table "Bds", row1.

 

is it possible?

In the default of the TextBox1, use:

     Dropdown1.Selected.Result

 

Then Insert another TextBox2 Default Put:

   LookUp(TableName,Categoria=TextBox1,Bds)

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

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.

Anonymous
Not applicable

@eka24I tried it, but it is bringing again an empty result 😕

The textbox1 is populated but the next one that should bring the result does not.

LookUp(Bds,
Categoria = "TextBox1",
'Base de datos1')

 

I added a screenshot of the table, I want to look Categoria 1 and give the second column of that row.

 

Use:

LookUp(Bds,Categoria = TextBox1.Text,'Base de datos1')

It means your table is called Bds

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

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.

View solution in original post

eka24
Super User III
Super User III

is the issue Resolved

Anonymous
Not applicable

@eka24 @Drrickryp 
Sorry for the late reply!

 

Had to do the app again, some issue with the source.

 

But yes!!! All good now. App is finally completed.

 

Thank you so much!

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 (109,743)