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

Show a determinate image in a gallery laptop/desktop/model

Hi

I have a gallery that show information in a sharpoint list, that contains some features from a pc like memory ,hd, model of the computer ,if it's a desktop or a laptop and the person that use this computer...

 

I would like to show a image in the gallery that show a picture of the model of the computer but i don't know how.

I think that the best solucion is have another list that contains ,model and a boolean if its a laptop or computer and another colum with the image.

After show the gallery ,filter to the other table and show his image.

 

Is it a good idea? how i can do it?

 

Another solution could be that when i insert the record in the sharepoint ,filter the image ,and insert the image in another column and when i show the gallery the image is just in the record.

Thanks for all help

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

Follow the post I gave earlier:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Display-a-picture-based-on-field-value/m-p/5...

 

First import your Pictures into the App (Ensure the pictures have same name a you have in the collection below.

Clear a Collection OnStart of the App:

ClearCollect(PicCollection,
{Line1:"Hp", Image: hpimage},
{Line1:"Dell", Image: DellImage},
{Line1:"Asus", Image: AsusImgae},
{Line1:"Toshiba", Image: ToshibaImage})
 
In your Gallery:
LookUp(PicCollection,Line1=ThisItem.YourColumnSameName,Image)
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
eka24
Super User III
Super User III

Follow the post I gave earlier:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Display-a-picture-based-on-field-value/m-p/5...

 

First import your Pictures into the App (Ensure the pictures have same name a you have in the collection below.

Clear a Collection OnStart of the App:

ClearCollect(PicCollection,
{Line1:"Hp", Image: hpimage},
{Line1:"Dell", Image: DellImage},
{Line1:"Asus", Image: AsusImgae},
{Line1:"Toshiba", Image: ToshibaImage})
 
In your Gallery:
LookUp(PicCollection,Line1=ThisItem.YourColumnSameName,Image)
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Thanks ,it's working!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,985)