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