is there a limitation to use pega reference tag as source value for img tag in correspondence rule. when we use pega reference tag it is not working and showing the img tag like blow.
<img src=“” />
is there a limitation to use pega reference tag as source value for img tag in correspondence rule. when we use pega reference tag it is not working and showing the img tag like blow.
<img src=“” />
Did you get any solution for this , if then please share here with me as well
yes, there are limitations. In a Correspondence rule, using a <pega:reference …/> inside an HTML attribute like src=“…” often results in an empty value at runtime because Pega’s stream processes where JSP/pega tags can render text safely, and image sources also have extra constraints (absolute URLs, data content URLs, or CID references) etc.
Would you be able to use a Binary file to hold the image and and embed the same into the instance with html tag- img–>
<img src="<pega:contentURL name=‘image.png’ path=‘/localpath/’ />
Alternatively, if you have to compute the url dynamically, though not recommended approach, but you can execute the scriptlet using <% %> to get the property from a clipboard and use that attribute into your image sources.