Results 1 to 5 of 5

Thread: Add member organisation subpanel

  1. #1
    knoop is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    79

    Default Add member organisation subpanel

    Hi all,

    Some of my accounts belong to another account. So a child-organisation could be a member of a parent-organisation. It's possible to add these single childs to a parent, but how can I see what childs belong to this parent?

    I'm using SugarCRM 6... In earlier versions there was a Member Organisation Subpanel... but I don't see it in this version.

    Thanks for your help!
    Prod: Version 6.1.0 (Build 5389)
    Test: Version 6.4.2 (Build 7526)

  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: Add member organisation subpanel

    You need to update the "accounts" from a relationship based to a function based one.
    You can take a look on modules/Campaigns/metadata/subpaneldefs.php and modules/Campaigns/Campaign.php to understand how to do that.

    A function based subpanel load subpanel thru a function instead of thru a relationship.
    But Sugar expect the function is defined inside parent module bean (Accounts), so you will need to create a custom controller on accounts and implement the method action_detailview in order to override the $this->bean as an instance of a custom class which extends the default Account class.
    Inside this class you can implement the method (called from subpanel) which must return a sql query responsible for fetching all subpanel data (Child Accounts Tree List).

    Best 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
    knoop is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    79

    Default Re: Add member organisation subpanel

    Hi Andopes,

    Thanks for your reply.
    I understand what you mean, but I don't know how to do it myself.
    Then there's something I don't understand: When I do a clean install the parent-child thing is working well. I've got a a 'member organisation' subpanel. But on my production server it isn't visible.

    Can you help me to fix it in detail, or could you explain why it dissapeared?
    Prod: Version 6.1.0 (Build 5389)
    Test: Version 6.4.2 (Build 7526)

  4. #4
    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: Add member organisation subpanel

    I´m not sure, but it is possible in your production instance the Accounts subpanel is hidden on Admin -> Configure Group Tabs.

    Cheers
    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.

  5. #5
    knoop is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    79

    Default Re: Add member organisation subpanel

    So stupid! The Accounts subpanel was hidden. Excuse me for this
    Prod: Version 6.1.0 (Build 5389)
    Test: Version 6.4.2 (Build 7526)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Thousands of queries executed by member-of subpanel
    By stevec in forum Developer Help
    Replies: 1
    Last Post: 2010-10-14, 12:14 AM
  2. Replies: 3
    Last Post: 2010-10-13, 11:44 AM
  3. Replies: 1
    Last Post: 2010-03-05, 02:34 AM
  4. Member Organizations Subpanel
    By Chopwood in forum Help
    Replies: 3
    Last Post: 2009-09-17, 10:57 PM
  5. Issue adding subpanel/link - Call to member...
    By kslanicky in forum Developer Help
    Replies: 8
    Last Post: 2006-04-23, 04:55 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
  •