Announcement

Collapse
No announcement yet.

Create relation: parent field

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

  • Create relation: parent field

    Hi,

    I have this scenario:

    - from a Meeting I press '+' on Tasks relationship panel
    - from the quick form I switch to the full form
    - I am now presented with the Task details

    Is there a way to pre-set the Parent field (in Details) in Tasks to the same value the Parent field in Meeting has?


    Thank you
    Last edited by manuel7b; 12-05-2017, 11:27 AM.

  • #2
    I noticed the desired behaviour works when I press '+' from a side panel, instead of a relationship panel.

    Any hint on how to have it working on a relationship panel?

    Thank you

    Comment


    • #3
      Hello
      If parent always has to be the same as in meeting, the easiest way is to set it in formula

      Comment


      • #4
        Actually, Task parent needs to be Meeting, not Account. I fixed it in "client/src/views/detail.js" with:

        PHP Code:
        var clonedAttributes this.model.getClonedAttributes();
        attributes['parentId'] = clonedAttributes['id'];
        attributes['parentType'] = this.scope;
        attributes['parentName'] = clonedAttributes['name']; 
        Before opening the edit form.

        Thanks!

        Comment


        • tanya
          tanya commented
          Editing a comment
          I hope you understand, that with changing core files you change the logic for whole system, and .. after some upgrade you could lose you modification, if this file was changed in a new version.

        • manuel7b
          manuel7b commented
          Editing a comment
          Sure, I understand. Actually, we have our own fork of Espo and we work on that, keeping it synced with your releases.
      Working...
      X