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 Multiple Record...
Power Apps
Answered

Select Multiple Record from One Gallery and Patch to another Gallery on Arrow Click

(0) ShareShare
ReportReport
Posted on by 16

Hi, 

I want to create a simple select and move feature for my App like below.

it should move the items from one gallery to another on arrow clicks.

MayankGupta94_0-1708046617733.png

MayankGupta94_1-1708046670524.png

 

Any help would be appreciated. Thanks!

 

 

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @MayankGupta94 ,

     

    I'm assuming that the items for the two libraries are two collections, and on the right arrow button, it removes the selected items from collection 1 and adds them to collection 2, and conversely, on the left arrow button, it removes the selected items from collection 2 and adds them to collection 1.

     

    So, on right arrow button OnSelect:

     

    UpdateContext({varItem1: Gallery1.Selected});
    Remove(Collection1, Gallery1.Selected);
    Collect(Collection2, varItem)

     

     

    on left arrow button OnSelect:

     

    UpdateContext({varItem2: Gallery2.Selected});
    Remove(Collection2, Gallery2.Selected);
    Collect(Collection1, varItem2)

     

     

    If you want to select multiple items from one side, it's better to use the List Control. It allows to select multiple but using Galleries you will need a collection3 to temporarily save the selected items.

    OnSelect of Gallery1:

     

    Collect(col3, Gallery1.Selected)

     

    OnSelect of right arrow:

     

    RemoveIf(Collection1, Value in col3.Value);
    Collect(Collection2, col3);
    Clear(col3)

     

    and vice versa.

     

    Best regards,

  • MayankGupta94 Profile Picture
    16 on at

    Thanks @v-jefferni 

    Yeah, List Control is the better option which accomplished my requirement.  

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard