cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BrendanZ
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
RandyHayes
Super User III
Super User III

@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.
Check out my PowerApps Videos too!

View solution in original post

1 REPLY 1
RandyHayes
Super User III
Super User III

@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.
Check out my PowerApps Videos too!

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (73,918)