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 / Select multiple lines ...
Power Apps
Unanswered

Select multiple lines in a Data Table and put the same comment for all of them

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have a data table (SQL source) in which users select a line and in an edit form they put a comment and submit it. They can select one line at a time though and it would be very convenient for them to put the same comment for multiple lines. How could I achieve that?

 

Many thanks!

Konrad 

I have the same question (0)
  • v-yuxima-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Could you please share more details of your data source's columns?

    Do you want to save multiple lines with one same comment?

    You can try the following workaround, I test as next:

    DataSource:[dbo].[Table_20190412SaveMore]  (the table name in my sql)

    ID(int PrimaryKey)

    Comment(nchar(10))

    20190412savesamecomment1.PNG

    App Test:

    Add one ComboBox into the ID datacard, and ComboBox1.items:'[dbo].[Table_20190412SaveMore]'.ID 

    Submit.OnSelect:ClearCollect(comtest,ComboBox1.SelectedItems);ForAll(comtest,UpdateIf('[dbo].[Table_20190412SaveMore]',ID=comtest[@ID],{Comment:DataCardValue7.Text}))     (you can change the controls' name on your side)

    20190412savesamecomment2.PNG

     

    Result Check:(use the gallery can check or back to the datasource check)

    20190412savesamecomment3.PNG

     

    Hope this could be helpful.

     

    Best Regards.

    Yumia

     

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard