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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combobox information n...
Power Apps
Suggested Answer

Combobox information not saving correctly to collection

(1) ShareShare
ReportReport
Posted on by

Hi

I hope you will be able to assist, I think it should be a easy fix but I cannot get my head around it.

I am using a gallery to save multiple entries into a collection which works correctly. The below pictures shows how the information is submitted with the instructions on the "+" button to patch that entry to the collection.

JPCoetzee_2-1721161879459.pngJPCoetzee_1-1721161836687.png

JPCoetzee_3-1721162315319.png

 

Once done with the entries I need to save all the entries to a separate collection through a Submit Button. All the entries are saving correctly however the surface_defects column only shows the last entries and not the previous entries. 

How can I change my code to save Surface_defects column information from all the previous entries and not just show the last entry?

JPCoetzee_4-1721162372092.png

Herewith the code for the submit button:

ForAll(
    Gal_Measures.AllItems,
    Patch(
        col_measuresoffline,
        Defaults(col_measuresoffline),
        {Title:TextCanvas1.Text,
        start_rp: Value(txt_startRP.Text),
        start_width: txt_startwidth.Text,
        end_rp: txt_endRP.Text,
        square_area: txt_SqArea.Text,
        end_width: txt_endwidth.Text,
        length: txt_length.Text,
        surface_defects: Concat(Measure_Defects.SelectedItems,Value & ";")
        }
    )
);

 

Thanks in advance for the assistance

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,427 Most Valuable Professional on at
    Try this format - I am assuming all the controls referred to are in the gallery - if not remove the _Data. reference
     
    ForAll(
       Gal_Measures.AllItems As _Data,
       Patch(
          col_measuresoffline,
          {
             Title: _Data.TextCanvas1.Text,
             start_rp: Value(_Data.txt_startRP.Text),
             start_width: _Data.txt_startwidth.Text,
             end_rp: _Data.txt_endRP.Text,
             square_area: _Data.txt_SqArea.Text,
             end_width: _Data.txt_endwidth.Text,
             length: _Data.txt_length.Text,
             surface_defects: 
             Concat(
                _Data.Measure_Defects.SelectedItems,
                Value, 
                ";"
             )
          }
       )
    );
    ​​​​​​​
  • Suggested answer
    kylzbaba Profile Picture
    182 on at
    Try this.
     
    ForAll(
        Gal_Measures.AllItems As ColItem,
        Patch(
            col_measuresoffline,
            Defaults(col_measuresoffline),
            {Title: ColItem.Title
            start_rp: Value(ColItem.start_rp)
            start_width: ColItem.start_width,
            end_rp: ColItem.end_rp,
            square_area: ColItem.square_area,
            end_width: ColItem.end_width,
            length: ColItem.length,
            surface_defects: ColItem.surface_defects
            }
        )
    );

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard