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 Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,175)