cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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
Highlighted
Super User
Super User

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

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
Highlighted
Super User
Super User

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

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

Highlighted
Helper I
Helper I

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

Thanks ,it's working!

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,421)