cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Dropdown value issue in collection

So I have a button that I use to generate records in a collection called "Tranzactii". However, I have issues with the drop down, called "DropDown1" as it appears as a table inside my collection.

2.PNG

This is because PowerApps sees DropDown1.SelectedText as a Record data type, and I need Text data type in order to get the correct value inside my collection, instead of the table.

1.PNG

I am mentioning that I used Dropdown1.Selected.Value, Dropdown1.SelectedText.Value, as well as Dropdown1.Selected.Record, but this happens:

3.PNG

I should also add that my dropdowns use ["", "option1", "option2"] kind of formula and they are no linked to any database.

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @Shifty011 :

I think it may be that the data type of Sursa in the new collect code conflicts with the data type of the corresponding field in the existing collection.

I suggest that you first delete all the code that defines Tranzactii, and then check whether Tranzactii is gone in the file-collections. Finally,Rewrite the code after making sure that Tranzactii has disappeared.

I suggest you take the following measures:

1\Make sure there is no other Collect/ClearCollection function in the app that operates on the collection "Tranzactii"(If a collection is defined by multiple collect functions, and the data type of one of the fields is different, an error will be reported)

2\Delete this button and add it again.

3\Check if the problem has been solved

Best Regards,

Bof

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Could be a redundant shot but have you tried Text(Dropdown1.SelectedText.Value) ?

Highlighted
Community Support
Community Support

Hi @Shifty011 :

I think it may be that the data type of Sursa in the new collect code conflicts with the data type of the corresponding field in the existing collection.

I suggest that you first delete all the code that defines Tranzactii, and then check whether Tranzactii is gone in the file-collections. Finally,Rewrite the code after making sure that Tranzactii has disappeared.

I suggest you take the following measures:

1\Make sure there is no other Collect/ClearCollection function in the app that operates on the collection "Tranzactii"(If a collection is defined by multiple collect functions, and the data type of one of the fields is different, an error will be reported)

2\Delete this button and add it again.

3\Check if the problem has been solved

Best Regards,

Bof

View solution in original post

Highlighted

You're a god amongst men

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,679)