web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Choices column - show ...
Power Apps
Answered

Choices column - show in gallery's item

(0) ShareShare
ReportReport
Posted on by 86

Hello everybody,

 

In my app, I have a Form with a combobox (SelectMultiple is true) in it. 

When I submit this Form (with several users) it created several records (2 here) in the corresponding table.

Aurelie_2-1649148771001.png

 

 

Aurelie_1-1649148530761.png

 

What I would like is to create 1 user per row. Example: row1 - user1. row2 - user2.

The objective is to show them in separate items in a gallery. (first item 'Person' = user1 ...)

Aurelie_3-1649148936906.png

 

Is it possible to do that?

 

Thank you in advance

 

Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Aurelie Could you paste the code you have for adding this records in the chat.

  • Aurelie Profile Picture
    86 on at

    @CNT sure, here is my Patch function

     

    ForAll(
     DataCardValue11.SelectedItems,
     Patch(
     'TableName',
     Defaults(TableName),
     {
     Name: Cycle_Name.Text,
     'Start Date': Cycle_StartDate.SelectedDate,
     'End Date': Cycle_EndDate.SelectedDate,
     'Review Status': Cycle_Status.Selected,
     RviewerUserIDTest_Choices: DataCardValue11.SelectedItems.Value
     }
     )
    );
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Aurelie Replace this line of the code

    RviewerUserIDTest_Choices: DataCardValue11.SelectedItems.Value

    to,

    RviewerUserIDTest_Choices: ThisRecord.Value

     

    Replace Value with the actual column name.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Aurelie Profile Picture
    86 on at

    Hi @CNT, I've tried your proposal, but I get an error

    Aurelie_0-1649237408271.png

     

    This is like he don't know this field

    This is what I get when I Highlight this field, 

    Aurelie_2-1649237533200.png

     

    This is another field

    Aurelie_1-1649237485135.png

     

     

     

     

    And this is the field with the previous value

     

    Aurelie_3-1649237674553.png

     

     

    It really blocks me.

    Do you, or anyone else, have a clue?

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Aurelie What do you have in the Items property of the Combobox? What type is it?

  • Aurelie Profile Picture
    86 on at

    @CNT , Here is what I have

    'RviewerUserIDTest_Choices' is the column name from my datasource

    Aurelie_0-1649244676428.png

     

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Aurelie The RviewerUserIDTest_Choices Column in the Database is of type Table. Because you want to store just one value of type Choices, this has to be changed.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • Aurelie Profile Picture
    86 on at

    @CNT It seams so easy now 😅

    Thanks a lot

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard