web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PCF dataset component:...
Power Apps
Answered

PCF dataset component: getting the URL of the image from an Image column in the table to which the control is added

(0) ShareShare
ReportReport
Posted on by 203

So I'm using the PCF dataset component called "Url Image List Control" by Ivan Ficko from the PCF Gallery ...

 

https://pcf.gallery/url-image-list-control/ 

 

It works great. Displays the images pointed to by a SingleLine.Text column containing the Url to the image in the table to which it is added.

 

So, I want that Url to be the "EntityImageURL" column, which is one of the "Supporting columns" that get added when you add an Image column to a table ...

 

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/image-attributes#supporting-columns

 

In the ControlManifest.Input.xml file, I have the Url property set with usage="bound", so as to be able to pick the "EntityImageURL" column when adding the control to the table ...

 

LozzieD_1-1666800740959.png

 

However, the "EntityImageURL" column does not appear on the picklist. I think this is because this "Supporting column" is not quite of the right type to match with one of the allowable types of column.  Likewise, if I switch to usage="input" and then manually enter the "EntityImageURL" column name, I get an error.

 

So, I am not able to pull the URL of the Image of an Image column from the column designed for the purpose ie that has the image URL in it.

 

Next I tried to construct the URL from the available data in the 

context.parameters.sampleDataSet, as per the above image-attributes link ...

 

LozzieD_2-1666801455936.png

That gets me almost there ...

 

LozzieD_3-1666801657448.png

I can construct the URL from the known text 

"/Image/download.aspx?Entity=", then my known variable "entity" from context.parameters.sampleDataSet data, and at the end the known Id variable, but there's a bit I have to hardwire in the middle of this text chunk:   
"&Attribute=ea_image&Id=".
 
"ea_image" is the name of the Image column. But I want the user who adds the control to the table to be able to set this by picking or typing the name into the URL property. But, as happened before with the "EntityImageURL" column, I cannot, because the "ea_image" Image column is not a type supported by the ControlManifest.Input.xml file ...
 
 
Hard-wiring the column name works fine, btw, the images display great.
 
But it doesn't meet the flexibility required to allow the admin who adds the control to a table to specific the Image column at configure time (there may be more than one on a table, and the name might be different from "ea_image", etc.)
 
Am I missing a trick here? Or any sassy workaround you can think of?
I have the same question (0)
  • Verified answer
    LozzieD Profile Picture
    203 on at

    I worked it out.

     

    Just needed to use the <property> element in the ControlManifest.Input.xml file, rather than the <property-set> element. <property> lets you pass any values unbound (usage="input") to any column, eg, text, like "ea_image", as I required.

    LozzieD_0-1666820380640.png

    Sorry, newbie!

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard