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

Images not showing in gallery

Hi all,

 

I have a SharePoint list called GameTitle with the following fields:

Fields:  GameTitle, ReleaseDate, Introduced, GameImages

DateType: SingleLineText, Date, Date, Picture

 

As part of this, there are a number of other lists, all connected via Powerapps using the list ID columns, and storing those values in number columns in appropriate lists. E.G. EventList - items in this list is referenced in other lists with a column called EventID.


What I am trying to do is display the image from the GameTitle list, in a gallery that is using a different list as the source - in this case TournamentMatches. In TournamentMatches, as per my description above, it stores the GameID value (referencing the ID field from the GameTitle list). So if the GameID is "1" for the gallery item, I want it to display the image stored in the GameImages field with the matching ID, in this case the first item in the list with the ID of "1".

 

I have tried the following syntax and it has no errors, but I get a blank image control:

LookUp(GameTitle, ID=RoundListGallery.Selected.GameID).GameImages

I have added the images to a library in SharePoint, then used the URL from them, to store in the Picture field in GameTitle.

Maybe I am setting up my image data wrong?

 

I may need to offer more information, but hopefully this is enough for someone to be able to help me out.


Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Images not showing in gallery

@BrendanZ 

So as I understand, you have a List in SharePoint called GameTitle.  Among other columns, it has a Picture type column. 

Please keep in mind that when you have a Picture column, it is just a URL to the actual picture - which you mention is in another SharePoint library.

This should, in fact, work for you as long as your are getting back the appropriate URL and there are no permission issues or specifics to the device (I am assuming you are in the designer having this issue).

 

To test that things are working as expected, place an Image control on your screen and set the Image property to : 

LookUp(GameTitle, ID=1).GameImages

 

See if you get what you expect.  If not, then start to look at the GameID value you have in your Gallery.

 

I hope this is helpful in finding the next step.

 

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Images not showing in gallery

@BrendanZ 

So as I understand, you have a List in SharePoint called GameTitle.  Among other columns, it has a Picture type column. 

Please keep in mind that when you have a Picture column, it is just a URL to the actual picture - which you mention is in another SharePoint library.

This should, in fact, work for you as long as your are getting back the appropriate URL and there are no permission issues or specifics to the device (I am assuming you are in the designer having this issue).

 

To test that things are working as expected, place an Image control on your screen and set the Image property to : 

LookUp(GameTitle, ID=1).GameImages

 

See if you get what you expect.  If not, then start to look at the GameID value you have in your Gallery.

 

I hope this is helpful in finding the next step.

 

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,625)