print to pdf and continue

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

    print to pdf and continue

    Hello,
    do you think if it's possible with custom helper to make this : like "continue" in a loop as php

    PHP Code:
    
    <!-- {{#each cares}} -->
    
    // requirement like php "continue" in a loop
    if !{{fieldInCare}} continue
    // end requirement
    
    <tr>
    
        <td width="10%">{{dateTime}}</td>
        <td width="60%">{{contactName}}</td>
        <td width="10%">{{nomenCode}}</td>
      </tr>
    <!-- {{/each}} --> 
    
    or maybe somethink like filter
    PHP Code:
    
    <!-- {{#each cares filter='fieldInCare' 'true' }} --> 
    
    Thanks
    Last edited by item; 04-03-2020, 12:07 PM.
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
  • eymen-elkum
    Active Community Member
    • Nov 2014
    • 472

    #2
    this is not possible but can be developed,

    I suggest you to customize the service php file of your entity so add a fuction like this:

    PHP Code:
    public function loadAdditionalFieldsForPdf(Entity $entity)  {
        // .... load you related list items here
        $entity->set('relatedList', $relatedList);
     } 
    
    CEO of Eblasoft
    EspoCRM Expert since 2014
    Full Stack Web Developer since 2008
    Creator of Numerous Successful Extensions & Projects​

    Comment

    • item
      Active Community Member
      • Mar 2017
      • 1476

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

      Comment

      Working...