No image in my templates is shown

Posted by smartsysISV on 02-Nov-2015 07:20

After the upgrade to the 4.03 this weekend all my images in templates is not shown.

Is this a known issue?

I can give more information in the SupoortLink.

All Replies

Posted by Anoop Premachandran on 02-Nov-2015 07:26

Could be a regression. Could you include more info and a screenshot here or in Support Link ?

Posted by smartsysISV on 02-Nov-2015 07:53

I can't log in to eteh supportlink, but can give you something here:

Ex template:

</head>

<body>

<table border="0" cellpadding="0" cellspacing="0" style='width: 635px; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px'>

<tbody>

<tr style='height: 30px'>

<td style='width: 300px'><img align='left' border='0' height='30' src='{!#SETTINGS.invoicelogo#url}' width='148' /></td>

 

On friday:


 

Today:


 

Posted by Anoop Premachandran on 02-Nov-2015 08:11

Ok Got it. Will log and fix in a patch this weekend (Saturday - Nov 7th)

Posted by smartsysISV on 02-Nov-2015 11:18

Is there no workaround at all, before this patch?

Posted by Pradeep Kagithalagudem on 03-Nov-2015 00:45

Hi,

As a workaround you can use the token {!#SETTINGS.invoicelogo#html} which will render as

<img src='localhost:8080/.../Image style='' border='0' align='absmiddle'/>

Thanks and Regards

Pradeep

Posted by kiran kumar Angara on 03-Nov-2015 02:39

Hi,

As a workaround make use of {!#SETTINGS.invoicelogo} instead of {!#SETTINGS.invoicelogo#url}

I hope this helps :-)

Thanks & Regards,

Kiran Avs.

Posted by smartsysISV on 03-Nov-2015 04:18

This workaround does not work

Posted by kiran kumar Angara on 03-Nov-2015 05:12

Hi,

Do you mean both workarounds provided above are not working?

I tried this scenario by adding template tokens {!Settings.ImageLoad}, {!Settings.ImageLoad#url}, {!Settings.ImageLoad#html}} to the Email Template for an object. For which i am able to get the image for {!Settings.ImageLoad} in email.

(Note: I created a image upload field (ImageLoad) in settings object)

If it is not the proper test case then could you provide the steps to reproduce the issue.

And, in which template you are using the HTML Code.

Thanks & Regards,

Kiran Avs.

Posted by smartsysISV on 03-Nov-2015 05:16

I have this in a document-template (html->pdf).

I tried both of the workarounds ang get the same error.

Posted by Pradeep Kagithalagudem on 03-Nov-2015 05:41

Hi,

Try this

Create a Formula field "invoicelogourl" of return type String in Settings object with below formula

var imageHtml = "{!#SETTINGS.invoicelogo#html}";

var imageurl = imageHtml.substring(imageHtml.indexOf("src='"));

imageurl = imageurl.substring(5);

imageurl = imageurl.substring(0,imageurl.indexOf("'"))

return imageurl;

Use token {!#SETTINGS.invoicelogourl} instead of  {!#SETTINGS.invoicelogo#url}

Thanks and Regards

Pradeep

Posted by smartsysISV on 04-Nov-2015 03:46

I get this error on the first line:

ERROR: Feil missing ; before statement (line #1) [Felt: "invoicelogourl" Objekt: "Instillinger" Instillinger: Settings] in formula: "

Posted by Pradeep Kagithalagudem on 05-Nov-2015 00:22

Hi,

The issue is with escaping string in javascript. As a workaround Can you please edit this field "invoiceLogo" and clear the "Alternate text" property. This might resolve your issue.

Thanks and Regards

Pradeep

This thread is closed