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

Passing Items to a Radio Inside a Component

I have a radio inside a component, I want to pass:

1- choices of a dataverse option set "YesNoChoices" to the radio items

2- radio default value

 

I tried adding a table input custom property to the component (leave it with no values by default) and set radio items to it.

In the app , when I use choices function in that custom property, I always get errors.

 

Is that possible? Am I doing this wrong?

 

chrome_RoiuGLyreE.pngchrome_1eFXP0Vj4H.png

 

16 REPLIES 16
Salem
Helper I
Helper I

Here we go.

Would you try this on your side, try passing choices to radio or dropdown inside a component and let me know if it works?

vkd4zoLwgz.png

CNT
Community Champion
Community Champion

@Salem Let me share what I have tested. Here Happy is a Yes/No choice column and People is the table. As you can see this formula returns a Table, which you should be able to pass to a component input property that requires a Table.

 

CNT_1-1626099796698.png

 

 

Salem
Helper I
Helper I

Thank you @CNT for following up on this.

 

This syntax works for the standard choices -like standard YesNo- but not custom choices (at least with me).

Lets stay with a standard YesNo.

Here is an example that works for me with a standard YesNo for a dropdown:

chrome_ONdYXzZeVV.png

 

But this does not work for what I want, component input table to pass this to radio (or a dropdown) inside a component:

chrome_dHRMrywhXa.png

 Can you try on your side to pass choices to a radio or dropdown inside a component?

CNT
Community Champion
Community Champion

@Salem 

 

Follow these steps in the component

CNT_0-1626155183142.png

VERY IMPORTANT:

 

CNT_1-1626155270285.png

 

In the App,

CNT_2-1626155363179.png

 

 

View solution in original post

Salem
Helper I
Helper I

Thanks @CNT 

That is what I was looking for, that Table({Value:""}) was the key.

Salem
Helper I
Helper I

BTW this works for custom option sets as well.
I just use either:

Choices (TableName.ColumnName) or Choices(OptionSetName) in app "Screens" view

CNT
Community Champion
Community Champion

@Salem Glad it works!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,860)