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

How do I colect the text from a dropdown?

Hi everyone, 

I'm having a problem where i'm not sure what to place on the code when I want to get the text of the selected option in a dropdown and submit it to the table(it's a form)

Here's how the code is:

Patch(Table2; Defaults(Table2);{NomePessoa:TextInputNomePessoa.Text; RE: Value(TextInputRE.Text);  Setor: Setores.Text; NomeCurso: TextBox1.Text})

As "NomePessoa" is a text field, its easy, just place .Text in the end.

"RE" is an int field, so i used Value() on the item

"Setor" is a dropdown, with options, what should i use on this? Currently is 

Setor: Setores.Text;

 but this is not working, already tried Setor: Setores.Selected, Setor:Value(Setores.Text), neither of them works!

 

Thanks for the help

1 ACCEPTED SOLUTION

Accepted Solutions
Meneghino
Level 10

Re: How do I colect the text from a dropdown?

Setor: Setores.Selected.Value

OR

 

Setor: Setores.Selected.Id

OR

 

Setor: Setores.Selected.ID

View solution in original post

1 REPLY 1
Meneghino
Level 10

Re: How do I colect the text from a dropdown?

Setor: Setores.Selected.Value

OR

 

Setor: Setores.Selected.Id

OR

 

Setor: Setores.Selected.ID

View solution in original post

Helpful resources

Announcements
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.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

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 (9,462)