Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Removing Mass Update in 5.5.0

  1. #1
    Sijut is offline Junior Member
    Join Date
    May 2010
    Posts
    4

    Default Removing Mass Update in 5.5.0

    Hi,

    I want to remove the mass update portion from accounts and contacts section. Can anyone tell how to do that??

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Removing Mass Update in 5.5.0

    You need to create the view.list.php for both modules and implement this function:

    PHP Code:
         function preDisplay(){
             
    parent::preDisplay();
             
    $this->lv->showMassupdateFields=false;
         } 
    Cheers
    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.

  3. #3
    Sijut is offline Junior Member
    Join Date
    May 2010
    Posts
    4

    Default Re: Removing Mass Update in 5.5.0

    Thanks a lot

    I implemented the code and it worked.

  4. #4
    LucioFiamingo is offline Sugar Community Member
    Join Date
    Jul 2009
    Posts
    29

    Default Re: Removing Mass Update in 5.5.0

    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

  5. #5
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Removing Mass Update in 5.5.0

    Hi Lucio,

    put that file in
    custom/modules/MODULENAME/views/

    MODULENAME = Accounts/Contacts/Any Custom module

    Thumbs up.

  6. #6
    LucioFiamingo is offline Sugar Community Member
    Join Date
    Jul 2009
    Posts
    29

    Default Re: Removing Mass Update in 5.5.0

    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

  7. #7
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Removing Mass Update in 5.5.0

    hello lucio,

    try this code,

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

    class 
    AccountsViewList extends ViewList {
    function 
    preDisplay(){
    parent::preDisplay();
    $this->lv->showMassupdateFields=false;


    Thumps Up.

  8. #8
    LucioFiamingo is offline Sugar Community Member
    Join Date
    Jul 2009
    Posts
    29

    Smile Re: Removing Mass Update in 5.5.0

    Hi Bavid,

    thumb up!

    Thank a lot.

  9. #9
    ivit is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    187

    Default Re: Removing Mass Update in 5.5.0

    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.

    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();
        } 

    If I want to remove Mass update panel, do I need to call parent:reDispay?

    BTW, I am using version 5.2

    Thanks,
    Igor
    SugarCRM CE 5.2

  10. #10
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Removing Mass Update in 5.5.0

    Quote Originally Posted by ivit View Post
    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.

    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();
        } 

    If I want to remove Mass update panel, do I need to call parent:reDispay?

    BTW, I am using version 5.2

    Thanks,
    Igor
    SugarCRM CE 5.2
    You can implement this function on view.list.php:

    PHP Code:
    function preDisplay() {
             
    parent::preDisplay();
             
    $this->lv->showMassupdateFields=false;

    Regards
    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.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 11
    Last Post: 2011-05-17, 02:14 AM
  2. Removing contact mass update fields
    By etienneborel in forum Developer Help
    Replies: 3
    Last Post: 2009-06-04, 02:17 PM
  3. Removing Fields in Mass Update
    By enrikm in forum Help
    Replies: 3
    Last Post: 2007-07-05, 04:49 AM
  4. Removing Fields from Mass Update Panel
    By mkatzhyman in forum Help
    Replies: 0
    Last Post: 2007-02-23, 03:16 PM
  5. Removing Mass Update form
    By jindal_1983 in forum Developer Help
    Replies: 0
    Last Post: 2006-08-07, 05:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •