cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FrancisSTG
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
gabibalaban
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
gabibalaban
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (34,978)