Results 1 to 7 of 7

Thread: Where is the "Industry" field coming from?

  1. #1
    mmansperger is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    Atlanta
    Posts
    40

    Default Where is the "Industry" field coming from?

    Sugar CE 5.0.0b

    Out of the box SugarCRM has a field "Industry" located on the Account page. It is a dropdown field and also shows in the mass update area. I want to remove it from the mass update area and I want to audit it. Since it is NOT a custom field I can't use Studio.

    I have found many postings on modifying the 'massupdate' => true property to 'massupdate' => false, of the field found in the vardefs of that module.

    And I find 'audited' => true will audit the field, again making these modifications in vardefs of the module in question.

    However the field "Industry" is not in /Accounts/vardefs.php. I can't find it anywhere. I need to change several fields like this but I only see a few (SIC Code to name one) in /Accounts/vardefs.

    Where are they hiding, and is it possible to do this?





  2. #2
    heta's Avatar
    heta is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Ahmedabad,India
    Posts
    214

    Default Re: Where is the "Industry" field coming from?

    hi mmansperger,

    in sugar 5.0.0*

    sugar uses some basic format for company, person etc.

    so these commanly used variables are defined @

    include/SugarObjects/templates/company/vardef.php

    I dont know how to make changes in variables for a specific module(for audit purpose).

    as soon as i find the solution, will post here..
    Best Regards
    ---------------------------------------
    Heta Shah - iNET PROCESS
    heta.shah@inetprocess.com
    http://www.inetprocess.co.in
    Projects :
    iNETDocs -Project of the month(Dec-2008)
    iNETGoogleMap

  3. #3
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Where is the "Industry" field coming from?

    You can simply change the file include/SugarObjects/templates/company/vardefs.php like this:


    Code:
    'industry' => 
      array (
        'name' => 'industry',
        'vname' => 'LBL_INDUSTRY',
        'type' => 'enum',
        'options' => 'industry_dom',
    //PATCH    
    'massupdate' => false  ,  
    //PATCH    
        'len'=>25,
        'comment' => 'The company belongs in this industry',
        'merge_filter' => 'enabled',
      ),
    Then you mus call "admin"-"repair"-"Clear Vardefs Data Cache" and the mass update will disappear.
    Last edited by kuske; 2008-04-11 at 03:17 PM.

  4. #4
    mmansperger is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    Atlanta
    Posts
    40

    Default Re: Where is the "Industry" field coming from?

    heta, Kuske,

    Thanks that is where they were hiding alright! Is that modification upgrade safe?
    If not is it possible to make it upgrade safe?

    Regards,

    Mike

  5. #5
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Where is the "Industry" field coming from?

    Hey, that's cool...

    create a file named /custom/Extension/modules/Accounts/Ext/Vardefs/vardefs.php and write the following lines into this file:

    Code:
    <?php 
    
    $dictionary['Account']['fields']['industry']['massupdate'] = false;
    
    ?>
    Then call "admin"-"repair"-"Clear Vardefs Data Cache" and the mass update will disapear and this patch will be upgrade safe (I hope, please let it be, please....)

  6. #6
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Where is the "Industry" field coming from?

    and the best of all:

    if you name the file /custom/Extension/modules/Accounts/Ext/Vardefs/mmansperger.php it will be really update safe.

  7. #7
    mmansperger is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    Atlanta
    Posts
    40

    Default Re: Where is the "Industry" field coming from?

    Thanks I'll try it! It's getting scarry, I almost know what I am doing!!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. custom field to sugar field
    By tanhaa in forum Developer Help
    Replies: 2
    Last Post: 2011-05-04, 03:52 PM
  2. Replies: 4
    Last Post: 2007-12-10, 04:49 PM
  3. Custom Field add not visible is Edit Layout
    By tylerpoint in forum Help
    Replies: 0
    Last Post: 2007-07-09, 05:56 AM
  4. Custom Field problems
    By gunni in forum Help
    Replies: 0
    Last Post: 2007-07-05, 09:43 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
  •