function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Uves RavatUves Ravat 

VisualForce Component

Hi,

 

I have a component that is linked to a visualforce page. I am trying to get the image field dynamically but even though there is a link on that field its not returning back the image.

 

The code is below:

<apex:outputpanel rendered="{!isEmailFlag == true}">
<c:pdfHeaderFooter type="header" position="center">
<apex:image url="{!obj['c2g__OwnerCompany__r']['c2g__LogoURL__c']}" alt="LOGO HERE" />
</c:pdfHeaderFooter>
</apex:outputpanel>

 

What is wrong with the above code please.

 

Thanks

PR

Chamil MadusankaChamil Madusanka

You have to implement that image url in the component not in page. The controller associated to the component can be used to create dynamic url.

 

If you still can't  understand, post your component code and associated controller as well.

 

If you got the answer from this post, Please hit the Kudos button & mark the answer as solution, It might help others running to into similar problem in future.

post your component code as well.

Uves RavatUves Ravat

Hi chamil