Custom client defs not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rkaranth
    Junior Member
    • Feb 2016
    • 22

    Custom client defs not working

    I have multiple assigned users in Contact Entity, below my custom code in client defs for the same. However the code does not seem to work after upgrade to Espo ver. 5.2.0 can anyone please help me on this.

    {
    "defaultSidePanelFieldList": {
    "detail": [
    {
    "name": "assignedUsers"
    },
    {
    "name": "teams"
    },
    {
    "name": "portalUser"
    }
    ],
    "detailSmall": [
    {
    "name": "assignedUsers"
    },
    {
    "name": "teams"
    },
    {
    "name": "portalUser"
    }
    ]
    },
    }
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    If it is the full file content, this json is not valid

    Comment

    • rkaranth
      Junior Member
      • Feb 2016
      • 22

      #3
      below my complete code, this works for edit and edit small but some how custom code is not getting picked only for detail and details small. Issue has surfaced, since I updated the ESPO core to 5.2.0. Am I missing anything??


      {
      "defaultSidePanelFieldList": {
      "detail": [
      {
      "name": "assignedUsers"
      },
      {
      "name": "teams"
      },
      {
      "name": "portalUser"
      }
      ],
      "detailSmall": [
      {
      "name": "assignedUsers"
      },
      {
      "name": "teams"
      },
      {
      "name": "portalUser"
      }
      ]
      },

      "defaultSidePanel": {

      "editSmall": {
      "name": "default",
      "label": false,
      "view": "views/record/panels/default-side",
      "options": {
      "fieldList": [
      {
      "name": "assignedUsers",
      "view": "views/fields/assigned-users"
      },
      {
      "name": "teams",
      "view": "views/fields/teams"
      }
      ]
      }
      },
      "edit": {
      "name": "default",
      "label": false,
      "view": "views/record/panels/default-side",
      "options": {
      "fieldList": [
      {
      "name": "assignedUsers",
      "view": "views/fields/assigned-users"
      },
      {
      "name": "teams",
      "view": "views/fields/teams"
      }
      ]
      }
      },
      "detailSmall": {
      "name": "default",
      "label": false,
      "view": "views/record/panels/default-side",
      "options": {
      "fieldList": [
      {
      "name": "assignedUsers",
      "view": "views/fields/assigned-users"
      },
      {
      "name": "teams",
      "view": "views/fields/teams"
      }
      ]
      }
      },
      "detail": {
      "name": "default",
      "label": false,
      "view": "views/record/panels/default-side",
      "options": {
      "fieldList": [
      {
      "name": "assignedUsers",
      "view": "views/fields/assigned-users"
      },
      {
      "name": "teams",
      "view": "views/fields/teams"
      }
      ]
      }
      }
      }
      }

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        Hi,
        the key name has to be

        defaultSidePanelFieldLists

        add s letter

        https://github.com/espocrm/espocrm/c...b975781d7aaf2f (commit from Feb 2017)
        Last edited by tanya; 05-24-2018, 08:14 AM.

        Comment

        • rkaranth
          Junior Member
          • Feb 2016
          • 22

          #5
          Hi Tanya,
          Thank you for your quick response. Above solution solved the problem.

          Comment

          Working...