Results 1 to 2 of 2

Thread: New "Member of"

  1. #1
    gmarton is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    11

    Default New "Member of"

    Hi,
    When adding an account in "Member of" it will automatically add the edited account on the "Member organizations" sub-panel.
    I'm trying to set up more than 1 "Member of" field by account type.

    How ever i was not able to recreate the member of button functionality to go in a custom field.

    Is this possible in 4.5RC1 or any other version?

    Thanks
    Last edited by gmarton; 2006-08-21 at 06:35 PM.

  2. #2
    gmarton is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    11

    Default Re: New "Member of"

    Found a workaround by adding a a custom dropdown then editing custom/include/language/en_us.lang.php to pull in the values for the drop down from the accounts table:
    $query = 'SELECT name FROM accounts WHERE account_type = \'Client\'';
    $result = $db->query($query, true);
    $list = Array();
    $list['none']="N/A"; //adds a blank option
    while($row = $db->fetchByAssoc($result))
    $list[$row['name']]=$row['name'];
    $app_list_strings['Client'] = $list;
    The only thing left is to find where I can add the current account to the member list of the related account...
    It would be nice to use the "member of function tho, because that makes it a hyperlink.

Thread Information

Users Browsing this Thread

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

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
  •