Increse number of records into SubPanel ListView

SugarCRM, SuiteCRM Navin Rakhonde
We have increased the number of records that is shown in a subpanel for a custom module. It will be done by simple steps, Step 1: create file in custom/modules/<desired_module> view.detail.php and add below code. <?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); require_once('include/MVC/View/views/view.detail.php'); class View<desired_view_name> extends ViewDetail { function…
Read More

Remove Sorting from listView in specific column

SugarCRM, SuiteCRM Navin Rakhonde
How do I remove sorting from listView (desired_module) in specific column in SugarCRM/SuiteCRM? We want to Remove sorting on Name field (only one field) of ListView of <desired_module>Module. Steps are as below, Step 1: Copy your modules/< desired_module>/metadata/listviewdefs.php file to custom/modules/<desired_module>/metadata/listviewdefs.php and set such as 'EMAIL1' => array ( 'width'…
Read More

How to hide a button on Detail View conditionally

SugarCRM, SuiteCRM Navin Rakhonde
Suppose in Specific Module i Want to Hide Delete button conditionaly from DetailView page, So where can i put condition for show/hide. You should be able to modify this in /custom/modules/<desired_module>/metadata/detailviewdefs.php Adding to this something like: if (your condition) { unset($viewdefs['<desired_module>']['DetailView']['templateMeta']['form']['buttons'][2]) //2 being the index of the DELETE button }…
Read More

Logging Custom Error messages in SugarCRM

SugarCRM, SuiteCRM Navin Rakhonde
Depending on what your Log Level is set to in the system settings you can log errors to the sugarcrm.log located in the root folder with the following code snippets $GLOBALS['log']->fatal("My fatal message"); $GLOBALS['log']->debug("My debug message"); $GLOBALS['log']->info("My log message"); Hope you find this blog post helpful. Feel free to add…
Read More