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

What did the "Dropdown.Selected.Value" change into?

Hi,

For the last months I've been working on an advanced survey app in Powerapps. In this app I select answers from a dropdownmenu and submit them top a Sharpoint list via the Patch() function. 

Like this:

Patch(Werkplekinspecties; Defaults(Werkplekinspecties);

{Title: Meerkeuze_2_overleg.Selected.Value;
Aanmelding: Meerkeuze_1_aanmelding.Selected.Value})

This worked fine until a few days back. Now the Selected.Value function doesn't exist anymore, and my app doesn't function.

I tried to use the new Selectedtext function instead of (the now non-existent) Selected.Value function. Sadly this doesn't work on my Sharepoint patch function.


I get the following error message:

The type of this OData__x0061_id9 argument does not match the expected type Text. Type Record found.

Has anyone encountered the same problem? Does anyone know the solution to it?
Thanks in advance!




1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: What did the "Dropdown.Selected.Value" change into?

Thanks for all the comments and my apologies for not responding ealier.

I have already found the solution. The Radio items were connected to an Excel tabel.
To patch the radio control to a SharePoint list I had to use the following formula instead:

Radio.Selected.Column2

This works fine and gives the same result as the Radio.Selected.Value gave me before.
I do think it's odd that Microsoft would suddenly change this without giving a notice or an explanation.




View solution in original post

8 REPLIES 8
Highlighted
Super User
Super User

Re: What did the "Dropdown.Selected.Value" change into?

I am not seeing the Selectedtext property as part of my dropdown or combo box control and my ....Selected.Value still works as expected. What type of control is Meerkeuze_1_aanmelding?



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Highlighted
Frequent Visitor

Re: What did the "Dropdown.Selected.Value" change into?

Hi Jeff,

My apologies, I meant to say radiocontrol.
You are right, dropdownmenu's work fine with Selected.Value.
Highlighted
Super User
Super User

Re: What did the "Dropdown.Selected.Value" change into?

I did a little test with the Radio button control and I could get both "Radio1.SelectedText.Value" and "Radio1.Selected.Value" to return the selected value. 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Highlighted
Community Support
Community Support

Re: What did the "Dropdown.Selected.Value" change into?

Hi @Harm_Jan ,

Based on th issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The Radio1.Selected.Value formula works well within my app.

 

The error message that you mentioned seems to tell that the field within your Patch function is required to provide a Text value, but you provide a Record value for it.

If you want to use the new Selectedtext function to get the selected value from the Radio control, please use the following formula:

Radio1.SelectedText.Value             /* <-- rather than Radio1.SelectedText */

Please take a try with above formula within your Patch function, check if the issue is solved.

 

If the issue still exists, please consider re-create a new app based on your SP List, then try above solution again, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Anonymous
Not applicable

Re: What did the "Dropdown.Selected.Value" change into?

Thanks for posting in the community @Harm_Jan - are you still experiencing this issue? Can you review the above replies and update the thread if they were helpful? 

 

Thank you,

 

@Anonymous 

Highlighted
Frequent Visitor

Re: What did the "Dropdown.Selected.Value" change into?

I've noticed the same issue recently.  I've had to replace Selected.Value with SelectedText.Value to get it to work correctly.  My concern, though, is that SelectedText has been deprecated for some time now.

Highlighted
Frequent Visitor

Re: What did the "Dropdown.Selected.Value" change into?

One further point... Sometime Selected.Value works.  I haven't been able to determine when it does and when it doesn't.  I start with Selected.Value.  If that doesn't work, I use SelectedText.Value.

Highlighted
Frequent Visitor

Re: What did the "Dropdown.Selected.Value" change into?

Thanks for all the comments and my apologies for not responding ealier.

I have already found the solution. The Radio items were connected to an Excel tabel.
To patch the radio control to a SharePoint list I had to use the following formula instead:

Radio.Selected.Column2

This works fine and gives the same result as the Radio.Selected.Value gave me before.
I do think it's odd that Microsoft would suddenly change this without giving a notice or an explanation.




View solution in original post

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,867)