Results 1 to 4 of 4

Thread: Account type on Contacts list view?

  1. #1
    hanjayac is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    77

    Default Account type on Contacts list view?

    Hi,

    How do I include the Account Type into the Contacts list view?

    Thanks.

    hc.

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

    Default Re: Account type on Contacts list view?

    Hello,

    This might help. Do change the variables as per your need.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    hanjayac is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    77

    Default Re: Account type on Contacts list view?

    Hi David,

    I followed the instruction from the link you provided but for some reason did not work. Here is what I did:

    Created a file custom/Extension/modules/Contacts/Ext/Vardefs/account_type.php
    Code:
    $dictionary['Contact']['fields']['account_type'] =
    array (
            'name' => 'account_type',
            'rname' => 'Account_Type',
            'id_name' => 'id',
            'vname' => 'LBL_TYPE',
            'type' => 'relate',
            'link' => 'accounts',
            'table' => 'accounts',
            'isnull' => 'true',
            'module' => 'Accounts',
            'dbType' => 'varchar',
            'source' => 'non-db',
    );
    Added the following code in custom/modules/Contacts/metadata/listviewdefs.php
    Code:
    'ACCOUNT_TYPE' => 
      array (
        'default' => true,
        'label' => 'LBL_TYPE',
        'width' => '10%',
      ),
    hc.

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

    Default Re: Account type on Contacts list view?

    Hello,

    Change
    PHP Code:
     'rname' => 'Account_Type'
    to

    PHP Code:
      'rname' => 'account_type'
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Generating a list of contacts by account type
    By rickster78 in forum Help
    Replies: 1
    Last Post: 2011-12-21, 01:58 PM
  2. Cannot remove Account Type from Accounts list view
    By websitedesigner in forum Help
    Replies: 3
    Last Post: 2010-10-25, 11:22 PM
  3. Search Contacts By Account Type
    By leighj in forum Help
    Replies: 2
    Last Post: 2007-09-05, 12:51 PM
  4. Add Account:Type to Contacts View
    By kinaole in forum General Discussion
    Replies: 0
    Last Post: 2007-03-21, 02:43 PM
  5. show type and industry in Account List View
    By fabpenso in forum General Discussion
    Replies: 3
    Last Post: 2005-06-07, 06:14 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
  •