cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Station1901
Helper III
Helper III

Createing a 'Live' Queue

Hello,

I am looking to create a basic queue using a PowerApp.  The queue will have a list of 30 names and each name will be allocated a job (if they're on shift) so...... Name1 is in Queue position 1 and when they are allocated a job they move to queue position 30 and all of the others move up one queue position.

 

If Name4 is in Queue position 4 and he is allocated a job (Names 1 to 3 are not on shift) I need Name4 to move to queue position 30, all of the others move up 1 queue position apart from Names 1 to 3 as they need to remain where they are due to not being on shift.

 

Does anyone have any idea how I can do this as my PowerApp design skills are not the best 

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Station1901 ,

 

The easiest way is to create a same gallery.They have the same line spacing and number of lines.

Then you could use scrollscreen to make the height of the card large enough.

vxiaochenmsft_0-1653616263160.png

vxiaochenmsft_1-1653616272895.png

vxiaochenmsft_2-1653616285034.png

 

Notes: The gallery should be high enough that it has no scrollbar and the card's height should > gallery's height.

 

Best Regards,

Wearsky

View solution in original post

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @Station1901 ,

 

I did a sample for you.

vxiaochenmsft_0-1653034239126.png

ClearCollect(Col,{Name:"Name1"},{Name:"Name2"},{Name:"Name3"},{Name:"Name4"},{Name:"Name5"},{Name:"Name6"})

vxiaochenmsft_1-1653034252891.png

vxiaochenmsft_2-1653034260897.png

Set(var,ThisItem.Name);Remove(Col,LookUp(Col,Name=var));Collect(Col,{Name:var})

 

Result:

AAA.gif

Best Regards,

Wearsky

Station1901
Helper III
Helper III

Thanks for this it works perfectly but i'd like if possible for it to show the 'queue' position. Can this be done ?

v-xiaochen-msft
Community Support
Community Support

Hi @Station1901 ,

 

The easiest way is to create a same gallery.They have the same line spacing and number of lines.

Then you could use scrollscreen to make the height of the card large enough.

vxiaochenmsft_0-1653616263160.png

vxiaochenmsft_1-1653616272895.png

vxiaochenmsft_2-1653616285034.png

 

Notes: The gallery should be high enough that it has no scrollbar and the card's height should > gallery's height.

 

Best Regards,

Wearsky

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (4,942)