cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Harm_Jan
Level: Powered On

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
Level: Powered On

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
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
Harm_Jan
Level: Powered On

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.
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.
Community Support Team
Community Support Team

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

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,

 

@TopShelf-MSFT 

lburgess
Level: Powered On

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.

lburgess
Level: Powered On

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.

Harm_Jan
Level: Powered On

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
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 348 members 3,689 guests
Please welcome our newest community members: