Announcement

Collapse
No announcement yet.

Printing into a table with a loop on an PDF Template only for non custom entities?

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

  • Printing into a table with a loop on an PDF Template only for non custom entities?

    Hi all,

    I found this new way to print a table in a PDF using a loop to iterate a relationship, using the info stated on the EspoCRM doc page. And it seems to be fine when I use this for non custom tables, like contacts,opportunities, etc But when I use a custom entity it doesn't seem to work. Is it only working for non custom? or is it me that I'm doing something wong?

    In my case I have an application custom entity, related to some payment records, again another custom entity, and I'm trying to send an e-mail with a table showing the payments done, and a table would be the optimal way to do it.

    any thoughts?

    Thanks

  • #2
    Hello,
    just for information on what i understand :
    all depand of your relationship
    so if you have a one2many or many2many .. you can loop, you just need find the relation name !

    of course, in one2many you access to all field, on many2many, only "name" out-of-box

    Regards

    Comment


    • #3
      It work for custom entity. See my post here: https://forum.espocrm.com/forum/gene...s-of-a-contact

      For more great thread, check out: https://github.com/o-data/EspoCRM-Le...nd-Design/wiki

      Comment


      • #4
        So great, thanks for the tip! It's now working like a charm.

        Comment

        Working...
        X