cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Dual List Box in Power Apps (Remove selected items)

Hi all,

 

In my previous post, I raised the question like how to achieve the dual list box functionality. My actual requirement is mentioned in the below screenshot (Figure 1).

 

Figure 1

FrancisSTG_1-1604061449717.png

 

In Power Apps, I have achieved the same functionality using two list boxes. I can add the selected items in the second list box. But I want to remove the added items from the First List Box. 

Figure 2:

FrancisSTG_0-1604061415415.png

 

Looking forward your reply. Thanks in advance.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hi @FrancisSTG 

 

Yes your objective is achivable. This is how ...

You need two collection for this, One at the begining loaded with your data (let's call it MyData) and the other one empty (let's call it MySelection).

On LeftListBox set:

       Items property to:   Sort(MyData, columnToOrder,Ascending)

       OnSelect property to: Collect(MySelection,LeftListBox.Selected);Remove(MyData,LeftListBox.Selected)

On RightListBox set: 

      Items property to: Sort(MySelection, columnToOrder,Ascending)

      OnSelect property to: Collect(MyData,RightListBox.Selected);Remove(MySelection,RightListBox.Selected)

 

 

and the result should be like this:

DemoApp - Saved (Unpublished) - Power Apps.gif

 

 

 

 

 

View solution in original post

2 REPLIES 2
Super User II
Super User II

Hi @FrancisSTG 

 

Yes your objective is achivable. This is how ...

You need two collection for this, One at the begining loaded with your data (let's call it MyData) and the other one empty (let's call it MySelection).

On LeftListBox set:

       Items property to:   Sort(MyData, columnToOrder,Ascending)

       OnSelect property to: Collect(MySelection,LeftListBox.Selected);Remove(MyData,LeftListBox.Selected)

On RightListBox set: 

      Items property to: Sort(MySelection, columnToOrder,Ascending)

      OnSelect property to: Collect(MyData,RightListBox.Selected);Remove(MySelection,RightListBox.Selected)

 

 

and the result should be like this:

DemoApp - Saved (Unpublished) - Power Apps.gif

 

 

 

 

 

View solution in original post

Hi @gabibalaban 

 

Thank you so much for your reply and suggestion. I have implemented as you explained; it's working perfectly fine..

 

Thanks again..

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (9,314)