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
Solved! Go to Solution.
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.
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.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
273 | |
252 | |
87 | |
37 | |
34 |
User | Count |
---|---|
346 | |
263 | |
131 | |
68 | |
47 |