Button syntax in EspoCRM 9.1.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rouhu
    Member
    • Sep 2020
    • 48

    #1

    Button syntax in EspoCRM 9.1.4

    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).

    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
                    
    }
                ]
            }
        } 
    I wonder if this should work or if the syntax has changed ?
  • yuri
    Member
    • Mar 2014
    • 9037

    #2
    Please read the rules – otherwise your post might get deleted. What to provide in a bug report: What errors are logged: in the Espo log in data/logs directory; in the web server error log; in the browser console (F12 key). Explicit unambiguous steps for reproducing the issue. As much detail as possible. EspoCRM version
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...