Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Select Multiple Account like Contacts

  1. #1
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Select Multiple Account like Contacts

    Hi,

    When I select Contacts from under an Account - In the popup window that appears I can use the checkboxes to select multiple Contacts to relate to the Account.

    When in Contacts - And I press the Account Select button I do not get the checkboxes - how can I add that to the popup window that appears for Account Selection.

    I have 5.0.0i Pro

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

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

    Default Re: Select Multiple Account like Contacts

    Hi Chris,

    this is because an account can have any number of contacts, but a contact can only have one main account. So when you click the select button from the account field on the contact edit view, you are only allowed to select one main account.
    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
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Select Multiple Account like Contacts

    Hi,

    But how can I change this in the popup- in my system a Contact can belong to more then one account.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  4. #4
    Join Date
    Mar 2009
    Posts
    9

    Default Re: Select Multiple Account like Contacts

    This is a feature that is very important to me as well - so I'm hoping someone has a better answer!

  5. #5
    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: Select Multiple Account like Contacts

    Quote Originally Posted by sugarcane View Post
    Hi Chris,

    this is because an account can have any number of contacts, but a contact can only have one main account. So when you click the select button from the account field on the contact edit view, you are only allowed to select one main account.
    Actually the relationship between Accounts and Contacts is M:M, but Sugar had been configured to deal with this relationship as 1:M, but you can add the Accounts subpanel under Contacts through extended Contacts layoutdefs. You also can remove from layout the Account Name field.

    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.

  6. #6
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Select Multiple Account like Contacts

    Hi,

    Ye have misread my issue.

    I have the Accounts subpanel under by Contacts, What I want is that when I press the Select button in the Accounts subpanel under contacts. I have teh checkboxes on the left in teh popup windows that allows me to select more then one Account at a time.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  7. #7
    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: Select Multiple Account like Contacts

    You need to do the following:
    1. Create an extended vardefs for Contacts where you will redefine the subpanel name for Accounts:

    PHP Code:
    <?PHP
    $layout_defs
    ['Contacts']['subpanel_setup']['accounts']['subpanel_name'] = 'ForContacts';
    ?>
    2. Copy the file modules/Accounts/metadata/subpanels/default.php to modules/Accounts/metadata/subpanels/ForContacts.php
    3. Edit this new file and replace this line

    PHP Code:
            array('widget_class' => 'SubPanelTopSelectButton''popup_module' => 'Accounts'), 
    By this one:

    PHP Code:
            array('widget_class' => 'SubPanelTopSelectButton''popup_module' => 'Accounts','mode'=>'MultiSelect'), 
    Go to Admin -> Repair -> Rebuild Extensions

    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.

  8. #8
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Select Multiple Account like Contacts

    Hi,

    Thanks, I will check that out and let you know how I got on.

    Thanks again

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  9. #9
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Select Multiple Account like Contacts

    Hi again,

    That is perfect, thats exactly what I wanted to do.

    Thanks

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  10. #10
    Raven24 is offline Junior Member
    Join Date
    Nov 2008
    Posts
    4

    Default Re: Select Multiple Account like Contacts

    I was looking for the same thing but for the Projects module.
    It seems that in the modules/Project/metadata/subpaneldefs.php in the top_buttons array it is enough to change
    PHP Code:
    array('widget_class' => 'SubPanelTopSelectButton''popup_module' => 'Accounts'), 
    to
    PHP Code:
    array('widget_class' => 'SubPanelTopSelectButton''popup_module' => 'Accounts','mode' => 'MultiSelect'), 
    ... I didn't have to edit the subpanel itself.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2007-08-11, 03:45 PM
  2. Replies: 0
    Last Post: 2007-04-03, 06:40 AM
  3. Replies: 1
    Last Post: 2005-12-19, 03:55 PM
  4. Replies: 5
    Last Post: 2005-09-16, 10:06 PM
  5. Multiple select in contacts popup
    By Mondini in forum Feature Requests
    Replies: 9
    Last Post: 2005-03-01, 01:43 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
  •