Announcement

Collapse
No announcement yet.

print to pdf and continue

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

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

  • #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 & Founder of Eblasoft.
    Professional EspoCRM development & extensions.

    Comment


    • #3
      Thanks Eymen..

      Comment

      Working...
      X