I have added a button to detail view in file /custom/Espo/Custom/Resources/metadata/clientDefs/Requisitions.json
Its working fine in v8.3.4 but in v9.1.4 the button does nothing. It suppose to popup a window to create a related record (just like pressing the plus-sign in subpanel).
I wonder if this should work or if the syntax has changed ?
Its working fine in v8.3.4 but in v9.1.4 the button does nothing. It suppose to popup a window to create a related record (just like pressing the plus-sign in subpanel).
PHP Code:
"menu": {
"detail": {
"buttons": [
"__APPEND__",
{
"html": "CREATE APPROVAL",
"name": "approval",
"action": "createRelated",
"style": "success",
"acl": "create",
"aclScope": "Approvals",
"data": {
"panel": "approvals",
"link": "approvals"
},
"hidden": false
}
]
}
}
Comment