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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,374)