Announcement

Collapse
No announcement yet.

printToPdf and Advanced Pack

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

  • 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


  • #2
    Hi,

    1) Not very clear.

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

    Comment


    • #3
      In 5.8.0 it will be possible to define custom helpers.

      Comment


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

        Comment

        Working...
        X