Results 1 to 4 of 4

Thread: Linking Accounts Industry to Contact

  1. #1
    JohnnyWadd is offline Junior Member
    Join Date
    Aug 2011
    Posts
    3

    Default Linking Accounts Industry to Contact

    Hello,

    SugarCRM CE 6.1.6
    Linux

    I am trying (rather unsuccesfully so far) to show the linked account industry for each contact.

    I have read a lot of forum posts including this one (http://www.sugarcrm.com/forums/f3/ho...count+industry) and have tried everything that is written there but am still having no joy..

    Could somebody please explain how to do this?

    Thanks,

    Johnny

  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: Linking Accounts Industry to Contact

    You can follow my tips here.

    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.

  3. #3
    JohnnyWadd is offline Junior Member
    Join Date
    Aug 2011
    Posts
    3

    Default Re: Linking Accounts Industry to Contact

    Thank you for the information, but I am really struggling to get the controller.php to work

    Below is the code I have so far but it gives an error about a non object. Your insight would be much appreciated.

    <?php
    require_once('/home/creso2/public_html/sugar/include/MVC/Controller/SugarController.php');


    function action_detailview(){
    global $app_list_strings;

    $this->view = 'detail';
    $GLOBALS['view'] = $this->view;

    require_once('/home/creso2/public_html/sugar/modules/Accounts/Account.php');

    $accounts_bean = new Account();
    $accounts_list = $accounts_bean->get_list('', "accounts.id = '{$this->bean->account_id}'");

    if(count($accounts_list['list']) > 0) {
    $account = array_shift($accounts_list['list']);

    $this->bean->industry_c = $accounts->industry;
    }
    }
    ?>

  4. #4
    JohnnyWadd is offline Junior Member
    Join Date
    Aug 2011
    Posts
    3

    Default Re: Linking Accounts Industry to Contact

    I would really appreciate if someone could help me out with this, I am still no closer to getting this to work?

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. newbie: can there be Industry Manager who can access accounts by Industry?
    By liming2006@gmail.com in forum Sales Force Automation
    Replies: 0
    Last Post: 2011-05-02, 04:22 PM
  2. Accounts Mass Update for blank Type & Industry
    By nexusglobalnet in forum Help
    Replies: 0
    Last Post: 2011-01-06, 04:34 PM
  3. Industry Field Accounts/Contacts
    By brandonchelo in forum Developer Help
    Replies: 2
    Last Post: 2010-06-24, 03:11 PM
  4. linking Accounts to Users from Accounts Edit Module
    By ghight in forum Developer Help
    Replies: 0
    Last Post: 2006-03-24, 10:15 PM
  5. Importing Accounts dont get values for Industry
    By robertoeh in forum General Discussion
    Replies: 0
    Last Post: 2006-02-01, 09:18 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
  •