printToPdf and Advanced Pack

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1500

    printToPdf and Advanced Pack

    Hello Yuri, Taras,

    i see in github, many ehancement about printToPdf.. for next release of espoCRM. . greats thanks... wonderfull.

    1) is possible to have a helper like so :

    PHP Code:
    {{#each contacts}}
     {{name}} => {{getMyRelatedData idOfContact  table='accountContact' rightId='@root.parentId' field='accountName'}} 
    {{/each}} 
    
    i will retreive field in relationTable..in entity who meeting for sample


    2) in printToPdf .. avability to incorporate "chart" from report ? like "panelReport" ? so we create a template, and incorporate the chart of a report

    Regards

    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
  • yuri
    Member
    • Mar 2014
    • 8669

    #2
    Hi,

    1) Not very clear.

    2) Report charts in pdf are not planned at this moment.

    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8669

      #3
      In 5.8.0 it will be possible to define custom helpers.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • item
        Active Community Member
        • Mar 2017
        • 1500

        #4
        Thanks Yuri,

        for question 1)

        entity : meeting then printToPdf in meeting

        I will retrieve a field like isInactive from accountContact or accountLead table with arguments meeting.parentType, meeting.parentId, attendeeId=contact or lead in the {{#each}}
        so sample in meeting printToPdf :

        PHP Code:
        {{#each contacts}}
         {{name}} => {{getRelatedField argument=[ contactId='this.contactId'  scope='accountContact'  parentId='meeting.parentId' field='isInactive' ] }} 
        {{/each}} 
        
        the helper result sql. = select field from scope where account_id='parentId' and contact_id='this.contactId'

        so he print : isInactive= yes/no

        Regards
        If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

        Comment

        Working...