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 / Select only checked re...
Power Apps
Answered

Select only checked records and make changes to those only

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I am new with PowerApps and struggling in creating an app.

In this I have gallery in screen 2(Gallery 2) which is coming from the main screen(Screen 1) using Filter function:

Filter(DbAbstract,name=NameVal.Text) where DbAbstract is Database, In here I am using the condition to make only some records visible which meet the condition.

Now in Screen 2 and Gallery 2, I have checkboxes in Gallery and you can see only one checkbox is coming in Tree View how can I select only two records from these three and once I click on the create changes it will navigate me to next page and land to screen 3(Next Screenshot attached).

 

anmolk172_0-1688714271818.png

 

 

Once I am in screen 3 whatever I write on  the four blocks and click on submit it will reflect only on those two records in SQL which I have checked in Screen 2

Kindly let me know how can I do this.

 

anmolk172_1-1688714619969.png

Do let me know on which property I need to make these changes.

 

Help me in this.

 

Thanks!

Anmol

Categories:
I have the same question (0)
  • Verified answer
    KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @Anonymous,

     

    Try code similar to the following to save the selected items to a collection on your Create Changes button OnSelect property:

    ClearCollect(colSelectedItems,
     Filter(galMyGallery.AllItems, chkSelected.Value)
    );

     

    Then you can refer to the selected items colSelectedItems on screen 3 when saving data to the data source.


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am supposed to move to next screen when I click on the button if I will OnSelect for this, Which property I should use to navigate to  next page?

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Use the Navigate function:

    Navigate(Screen3);

     

    As data collection colSelectedItems is globally available, you can refer to it from screen 3.

     

    Navigate function reference: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-navigate


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

     

    I am using this line on Code on OnSelect

    anmolk172_0-1688720139954.png

     

    Should I use Navigate(Screen3) in OnSelect only?

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    After the ClearCollect function call, place Navigate(Screen3). This is so the data collection and the navigation are both done.


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @KeithAtherton

     

    Now, whatever I insert in these Text fields should be updated in SQL server in column i.e DateProposed, Remarks, ApprovedDate, Status to those specific records which I have selected from checkbox. These are text Fields not Forms

     

    How can I do that?

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Look into using the Patch function to insert new records into a data source:

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard