Link parent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enricorossa
    Senior Member
    • Jul 2018
    • 125

    Link parent


    In managing my entity I would like to add a link to a parent but I do not find the option when I create the field. Reading in the forum I understood that I have to change the json related to the entity in entityDefs.

    I modified the file like this:

    patch : custom\Espo\Custom\Resources\metadata\entityDefs
    file : Prestazioni.json

    add into "fields"

    "parent": {
    "entityList": [
    "Account",
    "Lead",
    "Contact",
    "Opportunity",
    "Case",
    "Pratiche",
    "ElaborazioneCedolini",
    "Contratti",
    "ServiziContratto",
    "EFP",
    "Corsi",
    "Partecipanti"
    ]
    },

    add the field in the layout manager dettails and when the text I find a simple text field labeled parent, where am I wrong? thank you
    Last edited by enricorossa; 11-15-2018, 10:14 AM.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello,
    Why isn't there a field "parent" type "Link Parent" in Quotes (Advanced Pack). I really need this so I can specify the types of entities

    Comment

    • enricorossa
      Senior Member
      • Jul 2018
      • 125

      #3

      thanks tanya, now correctly displays the problem and that if I create a "performance" from the account detail this field is not automatically populated with the name of the account as it happens if I create a meeteng, for me this is very important, what do i still have to change?


      I modified the file by inserting in the fileds section:

      "parent": {
      "type": "linkParent",
      "entityList": [
      "Account",
      "Lead",
      "Contact",
      "Opportunity",
      "Case",
      "Pratiche",
      "ElaborazioneCedolini",
      "Contratti",
      "ServiziContratto",
      "EFP",
      "Corsi",
      "Partecipanti"
      ]
      },
      and in the links section:

      "parent": {
      "type": "belongsToParent",
      "foreign": "prestazionis"
      },

      I await your news thanks

      Comment

      • enricorossa
        Senior Member
        • Jul 2018
        • 125

        #4

        moreover if I insert the reference to the parent directly from the module when I open the account I can not find the prestazione in the relations panel

        Comment

        Working...