Removing buttons From SugarCRM / SuiteCRM Detail View

SugarCRM, SuiteCRM Navin Rakhonde
Following Code will Remove the Fourth button from the Detailview of ModuleThis code should be placed in the display() function in the view.detail.php of the module in which we want to remove the button unset($this->dv->defs[‘templateMeta’][‘form’][‘buttons’][3]); $this->dv->process(); echo $this->dv->display(); Hope you find this blog post helpful. Feel free to add comments…
Read More

Getting all ids of All Listview Records – SugarCRM / SuiteCRM

SugarCRM, SuiteCRM Navin Rakhonde
Below code is used to get all id of listview Of Module.This function should be used in the view.list.php of custom/modules/<module_name>/views/ function display() { global $db; parent::display(); $ids=$this->lv->data[‘pageData’][‘idIndex’]; print_r($ids); } Note :1. Here, <module_name> means the module name you see in the URL, for example, Contacts, Leads, Accounts, etc. Hope…
Read More

Add Fields in Basic Search – SugarCRM / SuiteCRM

SugarCRM, SuiteCRM Navin Rakhonde
Here assume that we are going to add Datepicker in the Basic search panel on Case Module List view. create the fileSearchFields.php at the custom/modules/Cases/metadata/and add the following code to this file $searchFields[‘<module_name>’] = array( ’email_notification_date’ => array( ‘query_type’ => ‘default’, ‘operator’ => ‘subquery’, ‘subquery’ => ‘SELECT parent_id FROM emails…
Read More