Results 1 to 7 of 7

Thread: Add new modules to the "Relate to" drop down

  1. #1
    john30043 is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Atlanta, GA
    Posts
    17

    Default Add new modules to the "Relate to" drop down

    I have a custom module that contains subpanel that links to activities, say Tasks. here is how I defined the relationship in vardefs.php for the custom module:

    'custmodule_tasks' => array('lhs_module'=> 'CustModule', 'lhs_table'=> 'custmodule', 'lhs_key' => 'id',
    'rhs_module'=> 'Tasks', 'rhs_table'=> 'tasks', 'rhs_key' => 'parent_id',
    'relationship_type'=>'one-to-many', 'relationship_role_column'=>'parent_type',
    'relationship_role_column_value'=>'CustModule')

    so if create a new task under custom module's subpanel, I would expect to see the 'CustModule' in the "relate to" dropdown, it did not happen. Where should I look in order to modify that drop down?
    Attached Images Attached Images  
    John Zhang
    [Server: WinXP]
    [Sugar v5.0.0 GA]
    [Apache 2.2.5]
    [MySQL 5.0.45]

  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 new modules to the "Relate to" drop down

    Hi, John.

    You have to edit the dropdown 'record_type_display' in the studio.

    Cheers.

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  3. #3
    Superman's Avatar
    Superman is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Kazakhstan
    Posts
    852

    Default Re: Add new modules to the "Relate to" drop down

    You need to add also new element into 'record_type_display' dropdown.
    Farkhad Rakhimzhanov
    E-mail: farkhad@gmail.com
    Skype: rakikama

    SuperTimesheet and Invoicing — timesheet tool with invoicing for SugarCRM.
    Book time against Cases, Project Tasks and Projects.
    Create invoice regarding booked time, print it in PDF or HTML,
    customize template as you like.

  4. #4
    john30043 is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Atlanta, GA
    Posts
    17

    Default Re: Add new modules to the "Relate to" drop down

    superman,

    when you say "add also new element into 'record_type_display' dropdown", are you talking about the language file?

    I did both in studio and custom/include/language/en_us.language.php and added the following section:
    $GLOBALS['app_list_strings']['record_type_display']=array (
    'Accounts' => 'Account',
    'Opportunities' => 'Opportunity',
    'Cases' => 'Case',
    'Leads' => 'Lead',
    'Contacts' => 'Contacts',
    'Bugs' => 'Bug',
    'Project' => 'Project',
    'ProjectTask' => 'Project Task',
    'Tasks' => 'Task',
    'Prospects' => 'Prospect',
    'CustModule' => 'CustModule',
    );

    I've also cleared the cache files but it still did not show up in the dropdown list,
    John Zhang
    [Server: WinXP]
    [Sugar v5.0.0 GA]
    [Apache 2.2.5]
    [MySQL 5.0.45]

  5. #5
    Superman's Avatar
    Superman is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Kazakhstan
    Posts
    852

    Default Re: Add new modules to the "Relate to" drop down

    Ok, we (with Mr. Andre) did a small mistake
    Just follow Andre's advice, except for that you need to edit 'parent_type_display' dropdown editor.
    Farkhad Rakhimzhanov
    E-mail: farkhad@gmail.com
    Skype: rakikama

    SuperTimesheet and Invoicing — timesheet tool with invoicing for SugarCRM.
    Book time against Cases, Project Tasks and Projects.
    Create invoice regarding booked time, print it in PDF or HTML,
    customize template as you like.

  6. #6
    john30043 is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Atlanta, GA
    Posts
    17

    Default Re: Add new modules to the "Relate to" drop down

    Yes, that takes care of it.

    What about the relate-to dropdown in History/Notes, are they come from different source?
    Last edited by john30043; 2007-12-13 at 05:39 PM.
    John Zhang
    [Server: WinXP]
    [Sugar v5.0.0 GA]
    [Apache 2.2.5]
    [MySQL 5.0.45]

  7. #7
    Superman's Avatar
    Superman is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Kazakhstan
    Posts
    852

    Default Re: Add new modules to the "Relate to" drop down

    See vardefs file. Key 'options' indicates what dropdown will be used for that field.
    Farkhad Rakhimzhanov
    E-mail: farkhad@gmail.com
    Skype: rakikama

    SuperTimesheet and Invoicing — timesheet tool with invoicing for SugarCRM.
    Book time against Cases, Project Tasks and Projects.
    Create invoice regarding booked time, print it in PDF or HTML,
    customize template as you like.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. add a menu to all modules
    By vincentd401 in forum Developer Help
    Replies: 1
    Last Post: 2007-09-08, 05:20 PM
  2. add the contents of 4 drop down list in one field
    By Spy123 in forum Developer Help
    Replies: 0
    Last Post: 2007-01-24, 11:06 AM
  3. Replies: 7
    Last Post: 2006-08-23, 05:35 PM
  4. Meetings Module - Add Drop down data not displayed
    By vaishjan in forum General Discussion
    Replies: 0
    Last Post: 2006-07-11, 05:10 AM

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
  •