How to create a new side panel for an entity?
Collapse
X
-
Maybe this will help:
I have a "Property" entity that is linked to a "Tenancy" entity in a one-to-many relationship.
In "Property" detail view, a list of "Tenancies" is shown in a side panel, similar to the way "Tasks" can be displayed in side panel.
This is how I did it:
1) Add a custom side panel in the "Property" clientDefs file
@ custom/Espo/Custom/Resources/metadata/clientDefs/Tenancy.json
Code:"sidePanels": { "detail": [ { "name": "tenancies", "label": "Tenancies", "view": "views/record/panels/relationship", "aclScope": "Tenancy" }, ...
@ custom/Espo/Custom/Resources/layouts/Property/sidePanelsDetail.json
Code:{ "tenancies": { "index": 1 }, ...
See how it is done for Tasks at client/modules/crm/src/views/record/panels/tasks.js
CheersLast edited by telecastg; 03-25-2019, 04:10 PM.
Comment