Results 1 to 9 of 9

Thread: How to hide default fields from Mass update

  1. #1
    itx's Avatar
    itx
    itx is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Montréal, Qc
    Posts
    25

    Default How to hide default fields from Mass update

    Hi guys,

    I stumbled across a few solutions for my problem, but I could understand none of them and the posts were to old for me to reply.

    How can I hide mass update fields for default fields ? I could make my custom field show up by checking the "mass update" box, but I can't figure out how to hide the default ones.

    Any suggestions ?

    Thanks,

    Alex
    SugarCRM CE 6.1
    Operating system Linux
    Linux2.6.32-25-generic x86_64
    Apache/2.2.14 (Ubuntu)
    PHP Version 5.3.2
    MySQL client version: 5.1.41

    Programmation SugarCRM, Wordpress, Joomla à Montréal

  2. #2
    akkimca's Avatar
    akkimca is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    270

    Thumbs up Re: How to hide default fields from Mass update

    Hi....

    i did not get ur problem but if u have to changes in mass update just try this link:
    http://omgili.com/Mass-Update
    http://www.sugarcrm.com/forums/showthread.php?t=20218

    if u still not get ur solution dn explain more about ur problem

    all d best
    Regards
    ==========================
    akkimca
    Work as Sugarcrm Freelancer
    Feel free to Find me in skype. Its my pleasure to talk with you.
    ID: akshay.biztech

  3. #3
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: How to hide default fields from Mass update

    If fields is not custom.

    ../modules/<MODULE NAME>/vardefs.php

    1. Change 'massupdate' to false.


    PHP Code:
    ...
      
    'field' =>
      array (
        
    'name' => 'field',
        
    'type' => 'date',
        
    'source'=>'non-db',
        
    'vname' => 'LBL_FIELD',
        
    'duplicate_merge'=> 'disabled',
        
    'massupdate' => false,                  // Mass Update
      
    ),

    ... 
    2. Then clear cache.
    Last edited by AlexAv; 2009-11-27 at 09:44 AM.
    Letrium ltd. - Only high quality service
    http://letrium.com

  4. #4
    itx's Avatar
    itx
    itx is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Montréal, Qc
    Posts
    25

    Default Re: How to hide default fields from Mass update

    Quote Originally Posted by AlexAv View Post
    If fields is not custom.

    ../modules/<MODULE NAME>/vardefs.php

    1. Change 'massupdate' to false.


    PHP Code:
    ...
      
    'field' =>
      array (
        
    'name' => 'field',
        
    'type' => 'date',
        
    'source'=>'non-db',
        
    'vname' => 'LBL_FIELD',
        
    'duplicate_merge'=> 'disabled',
        
    'massupdate' => false,                  // Mass Update
      
    ),

    ... 
    2. Then clear cache.
    Wow Alex, thanks so much, it worked !

    However, I can't seem to find the 2 following fields : "Synchronize with Outlook" and "Optout email". Would you happen to know the system's data names so I can include them in the vardefs.php file ?

    Thanks again,

    Alex
    SugarCRM CE 6.1
    Operating system Linux
    Linux2.6.32-25-generic x86_64
    Apache/2.2.14 (Ubuntu)
    PHP Version 5.3.2
    MySQL client version: 5.1.41

    Programmation SugarCRM, Wordpress, Joomla à Montréal

  5. #5
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: How to hide default fields from Mass update

    Hi.

    In which module did you see this fields?

    Regards,
    Alex
    Letrium ltd. - Only high quality service
    http://letrium.com

  6. #6
    itx's Avatar
    itx
    itx is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Montréal, Qc
    Posts
    25

    Default Re: How to hide default fields from Mass update

    Hi Alex,

    I see these 2 fields in the Contacts module, Sugar 5.2.0j.

    Thanks!
    SugarCRM CE 6.1
    Operating system Linux
    Linux2.6.32-25-generic x86_64
    Apache/2.2.14 (Ubuntu)
    PHP Version 5.3.2
    MySQL client version: 5.1.41

    Programmation SugarCRM, Wordpress, Joomla à Montréal

  7. #7
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: How to hide default fields from Mass update

    In my modules/Contacts/vardefs.php (version 5.2.0f) I have this code:

    PHP Code:

     
    'sync_contact' =>
          array (
            
    'massupdate' => false,
            
    'name' => 'sync_contact',
            
    'vname' => 'LBL_SYNC_CONTACT',
            
    'type' => 'bool',
            
    'source' => 'non-db',
            
    'comment' => 'Synch to outlook?  (Meta-Data only)',
          ), 
    What do you whant to do with this fields ("Synchronize with Outlook" , "Optout email")?
    Letrium ltd. - Only high quality service
    http://letrium.com

  8. #8
    itx's Avatar
    itx
    itx is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Montréal, Qc
    Posts
    25

    Default Re: How to hide default fields from Mass update

    Yes, me too, it says 'massupdate' => false, but still shows up, along with the "Opt out email" option
    SugarCRM CE 6.1
    Operating system Linux
    Linux2.6.32-25-generic x86_64
    Apache/2.2.14 (Ubuntu)
    PHP Version 5.3.2
    MySQL client version: 5.1.41

    Programmation SugarCRM, Wordpress, Joomla à Montréal

  9. #9
    Mithun's Avatar
    Mithun is offline A Prolific Poster
    Join Date
    Mar 2009
    Location
    India
    Posts
    236

    Default Re: How to hide default fields from Mass update

    Try something similar to code below in custom/modules/Contacts/Ext/Vardefs/vardefs.ext.php

    PHP Code:
    <?php 

    $dictionary
    ['Contact']['fields']['do_not_call']['massupdate'] = false;  
    $dictionary['Contact']['fields']['account_name']['massupdate'] = false;  
    $dictionary['Contact']['fields']['account_id']['massupdate'] = false;  
    $dictionary['Contact']['fields']['report_to_name']['massupdate'] = false;  
    $dictionary['Contact']['fields']['lead_source']['massupdate'] = false;  
    $dictionary['Contact']['fields']['portal_active']['massupdate'] = false;  
    $dictionary['Contact']['fields']['opportunity_role']['massupdate'] = false;  
    $dictionary['Contact']['fields']['sync_contact']['massupdate'] = true;  

    ?>
    Mithun P Sreedharan
    ITFlux Inc
    38030 Stenhammer Dr
    Fremont
    CA, USA - 94536
    Phone : (510)-792-8897
    Fax : (408)-877-1588
    For further queries mail to mithun@itflux.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hide Mass Update from non-admins?
    By Mithun in forum Developer Help
    Replies: 17
    Last Post: 2011-09-10, 11:24 AM
  2. Hide Search panel and Mass Update
    By justinconn in forum Developer Help
    Replies: 9
    Last Post: 2009-11-10, 01:36 AM
  3. hide mass update globally
    By hoang in forum Developer Help
    Replies: 9
    Last Post: 2009-06-03, 10:18 AM
  4. Unable to Hide 'Mass Update' panel
    By HomeTeam in forum General Discussion
    Replies: 13
    Last Post: 2009-04-26, 03:55 AM
  5. Hide Mass Update (Sugar5)
    By wkamdem in forum General Discussion
    Replies: 9
    Last Post: 2008-04-10, 08:12 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
  •