No image in my templates is shown - Forum - Rollbase - Progress Community

No image in my templates is shown

 Forum

No image in my templates is shown

This question is not answered

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
  • Could be a regression. Could you include more info and a screenshot here or in Support Link ?

  • 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:


     

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

  • Is there no workaround at all, before this patch?

  • 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

  • Hi,

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

    I hope this helps :-)

    Thanks & Regards,

    Kiran Avs.

  • This workaround does not work

  • 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.

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

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

  • 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

  • I get this error on the first line:

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

  • 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