Results 1 to 8 of 8

Thread: How do i make a filed reportable?

  1. #1
    gerald29 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    34

    Default How do i make a non-custom field reportable?

    Hello all,
    i have a somewhat simple question, i am sure that there is a php file somewhere i can edit to do this.
    I want to make the account_name field reportable. in my admin console this option is grayed out, but is there a way around this? Let me know if you need more info. thanks in advance.
    Last edited by gerald29; 2008-09-04 at 06:53 PM.
    SugarCRM 5.1.0c
    Windows Server 2003 R2
    XAMPP Installation
    Apache / MySQL

  2. #2
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: How do i make a filed reportable?

    Hi greald39,

    are you using Pro or Ent? If so, then the Account Name field is already reportable. Just add the Account module to your report and pull the account 'Name' field into the display column.

    Does this answer your question?
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

  3. #3
    gerald29 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    34

    Default Re: How do i make a filed reportable?

    We have Pro i think, i know we pay for it...
    I am running the report on leads, so its the leads module, but within that module, the account_name is not reportable. when i go to the field editor, the 'reportable' checkbox is grayed out...
    Am i just doing the report wrong though, b/c as i understand it i can only select one module, and in this case i need to select leads.
    thanks for the reply.
    SugarCRM 5.1.0c
    Windows Server 2003 R2
    XAMPP Installation
    Apache / MySQL

  4. #4
    dlorenzetti's Avatar
    dlorenzetti is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    São Paulo, Brasil
    Posts
    189

    Default Re: How do i make a filed reportable?

    Hi gerald,

    You can put that in vardefs.php (modules/Leads/vardefs.php).

    In definitions of account_name field put:

    'reportable' => 'true',


    Cheers
    Diego Lorenzetti
    Lampada Global Services - Open Source Solutions
    Phone: +55 11 3237-3110
    Email: equipe@lampadaglobal.com
    Site: www.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.

  5. #5
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: How do i make a filed reportable?

    Hi Gerald,

    I am running the report on leads, so its the leads module, but within that module, the account_name is not reportable. when i go to the field editor, the 'reportable' checkbox is grayed out...
    That is strange, the Account Name field by default is reportable for the Leads module. Are you using 4.5.1 or did you upgrade to 5.0? It is a best practice to make any changes to custom/Extension/modules/Leads/Ext/Vardefs/vardefs.php to make it upgrade safe.

    For the Leads report, you would just run a report on the Leads module, and in the Column list, there should be a field 'Account Name'
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

  6. #6
    gerald29 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    34

    Default Re: How do i make a filed reportable?

    Quote Originally Posted by dlorenzetti
    Hi gerald,

    You can put that in vardefs.php (modules/Leads/vardefs.php).

    In definitions of account_name field put:

    'reportable' => 'true',


    Cheers
    I attempted to do this, but i cant get it to work. i am concerned that when i alter the vardefs.php my changes arent being deployed. I only need to restart the apache service for my changes to take affect right?
    SugarCRM 5.1.0c
    Windows Server 2003 R2
    XAMPP Installation
    Apache / MySQL

  7. #7
    gerald29 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    34

    Default Re: How do i make a filed reportable?

    okay, when i go to modules\leads\vardefs.php under account_name this is what i have:
    'account_name' =>
    array (
    'name' => 'account_name',
    'rname' => 'name',
    'id_name' => 'account_id',
    'vname' => 'LBL_ACCOUNT_NAME',
    'join_name'=>'accounts',
    'type' => 'relate',
    'reportable' => true,
    'link' => 'accounts',
    'table' => 'accounts',
    'isnull' => 'true',
    'module' => 'Accounts',
    'dbType' => 'varchar',
    'len' => '255',

    ),

    please note that i added the reportable part. so in edition to my question about only needing to restart the service, does this look right? Even though it is in the leads section, i noticed it has module=accounts, is that correct? thanks again!
    SugarCRM 5.1.0c
    Windows Server 2003 R2
    XAMPP Installation
    Apache / MySQL

  8. #8
    gerald29 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    34

    Default Re: How do i make a filed reportable?

    ok, new issue.
    i got the checkbox to take affect, i had to go to repair and have it sync with the vardefs, but now although the checkbox is checked, i still cant run reports using the account_name column, it didnt fix it!
    SugarCRM 5.1.0c
    Windows Server 2003 R2
    XAMPP Installation
    Apache / MySQL

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. make relational fields required
    By danrweki in forum Developer Help
    Replies: 2
    Last Post: 2008-08-18, 02:42 PM
  2. how make login using nusoap
    By shemeermali in forum Developer Help
    Replies: 0
    Last Post: 2008-02-20, 08:03 AM
  3. Replies: 1
    Last Post: 2007-02-21, 06:32 PM
  4. I want to know if I make the backup well
    By aaaa1es2000 in forum Help
    Replies: 0
    Last Post: 2006-10-19, 09:14 AM
  5. How to make a field read only based on data
    By prismainc in forum Help
    Replies: 0
    Last Post: 2006-06-11, 01:07 PM

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
  •