Saturday, May 7, 2016

SugarCRM and Suitecrm – Remove Mass Update From A Built In Module

This quick post will show you how to remove the mass update field from a built in module in SugarCRM or Suitecrm. This will also work for a module that has been deployed but it will not work properly for a module built using module builder. Well, it will work but as soon as you re-deploy the module the changes will be over-written.

For the purpose of this we will use the Account module and assume that it is this that we wish to remove the Mass Update panel from.

The first thing to do is create the file ‘view.list.php’ in /custom/modules/Account/views/ – If this path does not exist, simply create it and place the file in there.

Once that is done add the following code to the file.

if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

require_once('include/MVC/View/views/view.list.php');

class AccountViewList extends ViewList
{
function listViewProcess()
{
$this->lv->showMassupdateFields = false;
parent::listViewProcess();
}
}
This will remove the Mass update panel from the module. To adapt the above code for other modules simply change the name of the class from AccountViewList to ViewList and place it in the appropriate directory.

2 comments:

Anonymous said...

Gone through your Blog.

Really amazing posts you have shared.


Hosted portal solutions

quicoabendroth said...

The wire at the casino - The New York - JT Hub
This was my first attempt at a 과천 출장샵 new casino online, in the 양산 출장안마 state of New Jersey, in 창원 출장샵 2018. It 시흥 출장마사지 was a 수원 출장마사지 fun, action-packed and fun experience.