Hi,
I have a new entity that is a child of account (1:M) I would like to use the relationshipPanels option in clientDefs for account to add this item to the account view. When i do this the Child item does not appear on the accounts view however when I update the bottomPanelsDetail.json for accounts it shows up (expected) however the option defined in the relationshipPanels to turn off select is working. So it appears the ClientDef is being loaded however the bottomPanelsDetail.json file that is defined in the base system prevents the new panel showing up. Can I add a panel to the bottomPanelsDetail.json from the extension without having to override the whole file?
1) ...\Resources\layouts\Account\relationships.json
2) ...\Resources\metadata\clientDefs\Account.json
3) ..\Resources\metadata\entityDefs\Account.json
Any help would be appreciated.
I have a new entity that is a child of account (1:M) I would like to use the relationshipPanels option in clientDefs for account to add this item to the account view. When i do this the Child item does not appear on the accounts view however when I update the bottomPanelsDetail.json for accounts it shows up (expected) however the option defined in the relationshipPanels to turn off select is working. So it appears the ClientDef is being loaded however the bottomPanelsDetail.json file that is defined in the base system prevents the new panel showing up. Can I add a panel to the bottomPanelsDetail.json from the extension without having to override the whole file?
1) ...\Resources\layouts\Account\relationships.json
PHP Code:
[
"__APPEND__",
"myChild"
]
PHP Code:
{
"relationshipPanels": {
"myChild": {
"select": false,
"create": true
}
}
}
PHP Code:
{
"fields": {
"myChild": {
"type": "linkMultiple",
"layoutDetailDisabled": true,
"layoutMassUpdateDisabled": true,
"noLoad": true,
"importDisabled": true
}
},
"links": {
"myChild": {
"type": "hasMany",
"foreign": "account",
"entity": "MyChild",
"audited": false
}
}
}
Comment