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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abisbe
    Member
    • May 2021
    • 60

    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
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #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
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • esforim
      Active Community Member
      • Jan 2020
      • 2204

      #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

      • abisbe
        Member
        • May 2021
        • 60

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

        Comment

        Working...