Hi,
I want to remove the mass update portion from accounts and contacts section. Can anyone tell how to do that??
Hi,
I want to remove the mass update portion from accounts and contacts section. Can anyone tell how to do that??
You need to create the view.list.php for both modules and implement this function:
CheersPHP Code:function preDisplay(){
parent::preDisplay();
$this->lv->showMassupdateFields=false;
}
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Thanks a lot
I implemented the code and it worked.
Is not clear to me where I have to put this code : I create a file view.list.php with the Andropes code but I have no idea where to put this file, pls specify!
Thanks
Hi Lucio,
put that file in
custom/modules/MODULENAME/views/
MODULENAME = Accounts/Contacts/Any Custom module
Thumbs up.
Thanks a lot. I try it but now, when I list Accounts (I made this customization for accounts module) this message appear:
Warning: require_once(modules//Forms.php) [function.require-once]: failed to open stream: No such file or directory in ...include/MVC/View/SugarView.php on line 410.
I put exactly tis code on file view.list.php :
<?php
function preDisplay(){
parent:reDisplay();
$this->lv->showMassupdateFields=false;
}
?>
peraphs some includes is missing???
Thanks a lot
hello lucio,
try this code,
Thumps Up.PHP Code:require_once('include/MVC/View/views/view.list.php');
class AccountsViewList extends ViewList {
function preDisplay(){
parent::preDisplay();
$this->lv->showMassupdateFields=false;
}
}
Hi Bavid,
thumb up!
Thank a lot.
Is it necessary to call parent preDispay i.e. parent:reDisplay() ???
I am using preDisplay in my ContactsViewList (view.list.php) for loading custom ListViewSmartyContacts.php where I am removing the merge button.
If I want to remove Mass update panel, do I need to call parent:PHP Code:require_once('include/MVC/View/views/view.list.php');
class ContactsViewList extends ViewList{
function preDisplay() {
global $current_user;
require_once('custom/include/ListView/ListViewSmartyContacts.php');
$this->lv = new ListViewSmartyContacts();
}
}
reDispay?
BTW, I am using version 5.2
Thanks,
Igor
SugarCRM CE 5.2
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks