Skip to main content

Notifications

Community site session details

Community site session details

Session Id : tl/J1GOKcpxEQx5BjWgknz
Power Apps - Building Power Apps
Answered

Append Gallery Data to Single Cell in SharePoint List Column

Like (1) ShareShare
ReportReport
Posted on 15 Mar 2025 18:12:03 by 4,623 Super User 2025 Season 1
I have New_Form_1.

New_Form_1 has Gallery_1.



The user can click 'Add Date' to add as many 'Performance Date' and 'On Sale / Bill' items as necessary.

When the user clicks the submit button, I would like all of the Gallery_1 data to populate the same same
line as all the other data, in one cell in the two columns.

Example - If the user creates three performances that data should appear as such in the SharePoint list,
                 In two columns, on one line with the item submitted. I'm guessing some kind of ForAll
                 with Last submitted, or something like that.

                          Peformance_Date                           OnSale_or_Build_and_Hold
                               2/4/2025                                                Build and Hold
                               2/6/2025                                                Build and Hold
                               2/7/2025                                                     On Sale

I am not using SubmitForm(). I am handwriting the submit formula. I've got it all written, there are no
errors. I just need to add the gallery data.

Here is some of that submit formula -
 
Patch(Event_Data_List,
    Defaults(Event_Data_List),
    {
        Title: CNE_Attraction_Name_ComboBox.Selected.Value,
        Venue_Name: Venue_Name_ComboBox.Selected.Title,
        Complex_Name: CNE_Complex_Name_ComboBox.Selected.Title,
        Show_Name: Show_Name_ComboBox.Selected.Show_Names,
        City: City_TextInput.Text,
        State_or_Province: State_or_Provice_TextInput.Text,
        Country: Country_TextInput.Text,
        Class: Attraction_Class_TextInput.Text,
        Number_of_Performances: Value(Number_of_Performances_Lbl.Text)
    }
);
Categories:
  • Michael E. Gernaey Profile Picture
    36,184 Super User 2025 Season 1 on 16 Mar 2025 at 01:32:12
    Append Gallery Data to Single Cell in SharePoint List Column
     
    Glad to help, sorry I missed your question on where to place it. I am glad you got it in there though.
     
    Oh and FYI for future, it was multi-line text you could do things like
     
    BlaBlaField
     
    or 
    BlablaControl.Text & Char(10) to add carriage returns or just add  " " for spaces or whatever you want
  • Phineas Profile Picture
    4,623 Super User 2025 Season 1 on 15 Mar 2025 at 23:28:09
    Append Gallery Data to Single Cell in SharePoint List Column
    Yep,

    Did this..


    ...and it gave me the requested result.
  • Phineas Profile Picture
    4,623 Super User 2025 Season 1 on 15 Mar 2025 at 22:47:13
    Append Gallery Data to Single Cell in SharePoint List Column
    Where...in my Patch statement would I place your suggestion?
  • Verified answer
    Michael E. Gernaey Profile Picture
    36,184 Super User 2025 Season 1 on 15 Mar 2025 at 21:52:04
    Append Gallery Data to Single Cell in SharePoint List Column
     
    So you want all the performance in one column and all Onsale XXX in another
    It looks like you would be storing this in a Text or Multi-Line text.
     
     Peformance_Date                           OnSale_or_Build_and_Hold
                                   2/4/2025                                                Build and Hold
                                   2/6/2025                                                Build and Hold
                                   2/7/2025                                                     On Sale
     
    So you could do this and what you need
     
    1. The Name of field for Performance_Date in the Gallery
    2. The Name of field for OnSaleXXX in the Gallery
    3. How you build it
     
    Concat(MyGallery.Allitems, PerformanceDateFieldName, ",")
     
    And that builds you a comma separated string.
     
    Or
     
    1. The Name of the Text Control with the value then do (In my example its a label, so the property value is called .Text (not .Value or .Default)
     
    Concat(Mygallery.Allitems, YourDateControlName.Text & ",")
     
    And there you have your concatenated string,
     
    Either or work
     
    Cheers,

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,442 Most Valuable Professional

Leaderboard
Loading started
Loading complete