cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LukasSliuzas
Helper II
Helper II

Control which image is first in gallery view

Hello,

 

An idea came but honestly, I don't know how to achieve it or if it's even possible to achieve it.

 

Idea:

 

I have for example 6 images added as an attachment which are shown in a gallery view. I would like to show Image 4 - pos. 1, Image 6 - pos. 2, Image 2 - pos. 3 and etc. Would this be possible? Or not?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @LukasSliuzas ,

 

I did a demo for you.

1\ My first item has 6 attachments .

vxiaochenmsft_0-1630979475561.png

vxiaochenmsft_1-1630979540566.png

 

I would like to show Image 4 - pos. 1, Image 6 - pos. 2, Image 2 - pos. 3 ,  Image 1 - pos. 4, Image 3 - pos. 5, Image 5 - pos. 6.

 

Set items property of gallery control to:

ForAll([4,6,2,1,3,5],Last( FirstN(First(LIST165).Attachments,Value)))

 

The result is as follows:

vxiaochenmsft_2-1630979680749.png

vxiaochenmsft_3-1630979694606.png

 

Best Regards,

Wearsky

 

 

 

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @LukasSliuzas ,

 

I did a demo for you.

1\ My first item has 6 attachments .

vxiaochenmsft_0-1630979475561.png

vxiaochenmsft_1-1630979540566.png

 

I would like to show Image 4 - pos. 1, Image 6 - pos. 2, Image 2 - pos. 3 ,  Image 1 - pos. 4, Image 3 - pos. 5, Image 5 - pos. 6.

 

Set items property of gallery control to:

ForAll([4,6,2,1,3,5],Last( FirstN(First(LIST165).Attachments,Value)))

 

The result is as follows:

vxiaochenmsft_2-1630979680749.png

vxiaochenmsft_3-1630979694606.png

 

Best Regards,

Wearsky

 

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,113)