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

Media Image Reference

I have several images stored in Media.  In a gallery I have an image control with the Image value set to... 

ThisItem.ImageFileName

This obviously doesn't work.  The file name for each image is stored in a collection of records.  I just need this image to change as the individual records are pulled up.  Anybody have a suggestion?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: Media Image Reference

NVM  I figured it out.  You have to go into OneDrive and copy the full link for each image you've shared and put that into the spreadsheet table instead of the shorthand link.

 

ReportSS_Share.png

View solution in original post

7 REPLIES 7
Highlighted
Community Champion
Community Champion

Re: Media Image Reference

Instead of storing the file name, store the image itself in the collection.

You can specify the image in a ClearCollect or Collect statement.

Highlighted
Helper I
Helper I

Re: Media Image Reference

Okay, I tried that by putting the images into the spreadsheet table the data is pulled from and it didn't work either.  How exactly do I accomplish this?

Highlighted
Community Champion
Community Champion

Re: Media Image Reference

Then you can do it with IDs and a virtual table.

Please Skype me on baizini, it will be quicker.

Highlighted
Helper I
Helper I

Re: Media Image Reference

Sorry, but our factory is too loud to Skype.  Workstation is not equipped for teleconference anyway.

Highlighted
Community Champion
Community Champion

Re: Media Image Reference

OK, set IDs in your table, then set the image control property to

LookUp(
    Table(
        {ImageId:1, MyImage:NameOfImage1},
        {ImageId:1, MyImage:NameOfImage2},
        etc. etc.
        ),
    ImageId=ThisItem.Id,
    MyImage)
Highlighted
Helper I
Helper I

Re: Media Image Reference

Okay, this is a method I have not yet tried.  Before we go down this path let me show you where I'm currently at and perhaps you can tell me what my issue is.  I've switched over to the method in this post.  Instead of embedding the images into the spreadsheet table I've uploaded them to a OneDrive for Business folder that is shared to my team and I have the path in the table instead.

 

./Personnel/EmployeeImage.jpg

 

However, this is what I get in my collection...

ReportSS_Image.png

 

Looks like the links are broken but the path appears correct and the directory is shared to the users.  Any ideas?  

Highlighted
Helper I
Helper I

Re: Media Image Reference

NVM  I figured it out.  You have to go into OneDrive and copy the full link for each image you've shared and put that into the spreadsheet table instead of the shorthand link.

 

ReportSS_Share.png

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

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

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

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 (3,645)