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

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

SUGARCRM: INCLUDE JAVASCRIPT FILE ON LISTVIEW

SugarCRM, SuiteCRM Navin Rakhonde
How to call JavaScript on List View? It will be done by one step only! Lets do this, Step 1 : Steps are as below, As it is SugarCRM's module, copy modules/<desired_module>/views/view.list.php to custom/modules/ <desired_module>/views/view.list.php or edit if it already exists at custom/modules/<desired_module>/views/view.list.php <?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid…
Read More