cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Harm_Jan
Helper I
Helper I

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
Harm_Jan
Helper I
Helper I

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

9 REPLIES 9
Jeff_Thorpe
Super User
Super User

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.

Hi Jeff,

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

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.
v-xida-msft
Community Support
Community Support

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.
Anonymous
Not applicable

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 

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.

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.

Harm_Jan
Helper I
Helper I

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.




g

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,216)