Announcement

Collapse
No announcement yet.

BasePlus Entity and entityDefs

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

  • BasePlus Entity and entityDefs

    Hello,
    espoCRM 5.7.5

    When we create a basePlus entity, in entityDefs we have :
    PHP Code:
            "meetings": {
                
    "type""hasMany",
                
    "entity""Meeting",
                
    "foreign""parent",
                
    "layoutRelationshipsDisabled"true
            
    },
            
    "calls": {
                
    "type""hasMany",
                
    "entity""Call",
                
    "foreign""parent",
                
    "layoutRelationshipsDisabled"true,
                
    "audited"true
            
    },
            
    "tasks": {
                
    "type""hasChildren",
                
    "entity""Task",
                
    "foreign""parent",
                
    "layoutRelationshipsDisabled"true,
                
    "audited"true
            
    }, 
    but we don't have emails :

    PHP Code:
            "emails": {
                
    "type""hasMany",
                
    "entity""Email",
                
    "foreign""parent",
                
    "layoutRelationshipsDisabled"true
            
    }, 
    I don't know if it's a bug.
    but I have a problem with pdf template with this entity :

    PHP Code:
    <!-- {{#each meetings}} -->

       
    {{name}}

    <!-- {{/
    each}} --> 
    all for {{#each calls, meetings, tasks, emails}} is empty.

    Any tips for have the activities in pdf ? sorry if it's not a bug.

    Regards







  • #2
    PDF template doesn't support looping through links. Only if link-multiple field is defined. Documented.

    Comment


    • #3
      Thanks Yuri,
      I have found a way for print-to-pdf activities... like Sales entity QuoteItems.. itemList.
      do you think is a good way ?
      Regards

      Comment


      • #4
        HI,

        If you do it in a custom file it must be good.

        Comment

        Working...
        X