Hello all
We were used to add a custom buttons in the module’s views, which then they call an action defined in the custom/<module_name>/controller.php. But those were the days of SugarCRM 6.5
Now that we are usint SuiteCRM 7.9.8 we are trying to do the same, but it is not working.
Is there any link or document that explains how to create a custom button in DetailView that will perform an action on the selected record?
Thanks a lot!
I don’t know of any document explaining specifically that, although there are many explaining small different customizations which, put together, might do what you need.
But something that worked in SugarCRM 6.5 should work in SuiteCRM. Maybe you can share with us the details of what your’re trying, post your code and which files you’re changing, and we can try and have a look?
Check the file
/custom/modules//metadata/detailviewdefs.php
the presence of an array of standard buttons:
...
'form' =>
array (
'hidden' =>
array (
0 => '...',
),
'buttons' =>
array (
0 => 'EDIT',
1 => 'DUPLICATE',
2 => 'DELETE',
),
),
'useTabs' => true,
'tabDefs' =>
...
If it is not - insert it and quick repair. After that, your custom button should appear.
It helped me when the audit button didn’t appear.
1 Like