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

 

 

 

View solution in original post

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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