cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Newbii_PowerApp
Frequent Visitor

How to use image in Media in PowerApps with Gallery

Hi All,

I'm plan to use image (jpg file) in Media in PowerApps with Gallery for solving slow to load when use with filter function so i think and try to create the collection OnVisible like this 

ClearCollect(
OptionsCollection,
{Value:"Logo1", Image: Logo1},
{Value:"Logo2", Image: Logo1},
{Value:"Logo3", Image: Logo1}
)

then with the image property of Image in the Gallery I create code like ThisItem.Image but it doesn't show any image

 

Could anyone advise me to solve this topic

 

Thank you

Best Regards

1 ACCEPTED SOLUTION

Accepted Solutions
goel_gagandeep
Resolver I
Resolver I

simply you can try with it lookup, but for lookup you have to add a Common column which can match with your gallery items column' data

goel_gagandeep_0-1660896150894.png

goel_gagandeep_1-1660896420049.png

.

 

View solution in original post

12 REPLIES 12
Kimii
Resolver II
Resolver II

hi @Newbii_PowerApp 
On the taskbar File>Collection

please check if there's any image in Image column of the collection you created

goel_gagandeep
Resolver I
Resolver I

Hi @Newbii_PowerApp, Please try with Table function, at my end its working absolutely fine,
Please see the attached images for the reference I have just created collection the on select property but you can use it Onvisible property as well.

goel_gagandeep_0-1660884893468.png

goel_gagandeep_1-1660884921687.png

I hope it will help you.

 

@goel_gagandeep  Thank you for your advisement, I'm try your code with Onvisible already it won't work yet.

@Kimii I'm already check, it show the image in the image column 

goel_gagandeep
Resolver I
Resolver I

@Newbii_PowerApp Could you please send Screen shot of the your work.

@goel_gagandeep  I'm attach my screenshot for your considearation

Screenshot.jpg

goel_gagandeep
Resolver I
Resolver I

@Newbii_PowerApp , Actually you doing wrong dear, In your gallery you already took another datasource in Items property of the Gallery, If you want pic in the image section you have to call same Items(or say datasource) in which you added your imges i.e collection so you have to add your collection as Items property of the gallery

goel_gagandeep_0-1660893752227.png

see this as a refrence

@goel_gagandeep Thank you, I'm understanding your explanation but I'm not surely which part of  code that  i can paste IconCollection and one more thing I'm have multi difference Logos to put in the Gallery so from your solution it can do that right

 

goel_gagandeep
Resolver I
Resolver I

Do one thing add images column in the Table and directly add your images from the backend 

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.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

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 (4,156)