Announcement

Collapse
No announcement yet.

PDF template: Image is not displaying instead "[object Object] " is displaying

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PDF template: Image is not displaying instead "[object Object] " is displaying

    Issue: Image is not displaying instead "[object Object]
    " is displaying.

    PDF template is created in custom entity 'Form'. It is pulling the data from the 'cases' entity.
    cases have one to many relationships with forms.

    Cases data is pulled in templated as expected, but 'attachmentsIds' which is a field type:Attachment Multiple, is displaying "[object Object]" inthe PDF print instead of the attached image. Below is the code, is there anything wrong am I doing.

    {{#each cases}}
    {{#ifMultipleOf @key 12}}{{/ifMultipleOf}} {{name}} {{number}} {{priority}} {{description}}

    {{#each ./cases as |attachmentsIds|}}{{#ifMultipleOf @key}}{{/ifMultipleOf}}{{attachmentsIds}}
    {{/each}}

    {{/each}}


  • #2
    Perhaps this could help: https://forum.espocrm.com/forum/gene...6160#post66160

    Comment


    • cdmindya
      cdmindya commented
      Editing a comment
      Thanks. but i tried all that. nothing worked there is no output, this is a nested {{#each }} case so I check with the https://handlebarsjs.com/guide/ with the help I could get, "[object Object]". Trying to find a way to render the "object" to an image in PDF print.

      Anyways thanks,
      If I get success I will post the code, so that others in similar situation will get help
Working...
X