CRM Open Source Business & Social CRM Software

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

Thread: Target list can add account

  1. #1
    eddiechen is offline Sugar Community Member
    Join Date
    Jun 2008
    Posts
    462

    Default Target list can add account

    manual build a relation in account and targetlist

    check the attachement.

    upload to the custom , repair and rebuild.

    Now you can build a list of account.
    Attached Files Attached Files

  2. #2
    gasgas is offline Member
    Join Date
    Nov 2007
    Posts
    5

    Default Re: Target list can add account

    Nice function.
    I was looking around for something similar.

    The only problems is that lacks of a 'select all' button, in order to select all accounts at one time.

    Bye.

  3. #3
    eddiechen is offline Sugar Community Member
    Join Date
    Jun 2008
    Posts
    462

    Default Re: Target list can add account

    add the below , you can select more in one time.

    SugarCE-Full-5.1.0c/custom/modules/ProspectLists/Ext/Layoutdefs/layoutdefs.ext.php


    PHP Code:
    <?php 
     
    //WARNING: The contents of this file are auto-generated


    // created: 2009-01-06 23:23:02
    $layout_defs["ProspectLists"]["subpanel_setup"]["accounts_prospectlists"] = array (
      
    'order' => 100,
      
    'module' => 'Accounts',
      
    'subpanel_name' => 'default',
      
    'sort_order' => 'asc',
      
    'sort_by' => 'id',
      
    'title_key' => 'LBL_ACCOUNTS_PROSPECTLISTS_FROM_ACCOUNTS_TITLE',
      
    'get_subpanel_data' => 'accounts_prospectlists',
    'top_buttons' => array( 
        array(
    'widget_class' => 'SubPanelTopCreateButton'), 
        array( 
            
    'widget_class' => 'SubPanelTopSelectButton'
            
    'popup_module' => 'Accounts'
            
    'mode' => 'MultiSelect',  
        ), 
    ),  



    );


    ?>

  4. #4
    Editha is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    42

    Default Re: Target list can add account

    This is perfect and exactly that what I need at the moment.

    Only the additional 'top_buttons' definition must be added in file

    sugarroot/custom/Extension/modules/ProspectLists/Ext/Layoutdefs/customaccounts_prospectlists.php
    instead of
    sugarroot/custom/modules/ProspectLists/Ext/Layoutdefs/layoutdefs.ext.php

    else it will be overwritten at the next repair&rebuild

  5. #5
    isispavia's Avatar
    isispavia is offline Member
    Join Date
    Feb 2009
    Posts
    5

    Default Re: Target list can add account

    Dear eddiechen,
    I've uploaded your files, everything seems fine, I can add one/multiple account to a target list, but, even if I see the account selected in ProspectList's detailed view, the Total Entries still remain at 0....
    It seems there's no association...

  6. #6
    Tonetti is offline Junior Member
    Join Date
    Feb 2009
    Posts
    2

    Default Re: Target list can add account

    Hi eddiechen,
    I can't upload the file in attachement. It gives me:
    "The zip file is missing a manifest.php file. Cannot proceed".
    In the zip file, actually, there's not manifest.php.
    Should I create it or what could be the problem ?

    Thank you
    Bye

  7. #7
    Antanas0001 is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    Lithuania
    Posts
    41

    Default Re: Target list can add account

    This is the correct way to create a relationship between prospect list and accounts:

    'prospect_list_accounts' => array( 'lhs_module'=> 'ProspectLists',
    'lhs_table'=> 'prospect_lists',
    'lhs_key' => 'id',
    'rhs_module'=> 'Accounts',
    'rhs_table'=> 'accounts',
    'rhs_key' => 'id',
    'relationship_type'=>'many-to-many',
    'join_table'=> 'prospect_lists_prospects',
    'join_key_lhs'=>'prospect_list_id',
    'join_key_rhs'=>'related_id',
    'relationship_role_column'=>'related_type',
    'relationship_role_column_value'=>'Accounts'
    ),

  8. #8
    Tonetti is offline Junior Member
    Join Date
    Feb 2009
    Posts
    2

    Default Re: Target list can add account

    Hi Antanas,
    actually there's only a relation between account and prospectlist
    which is in 'accounts_prospectlistsMetaData.php'.
    So my question is: Have I to create a new relation
    between prospectlist and accounts following your instructions?

    Thanks
    Bye

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

    Default Re: Target list can add account

    I this is extactly what I was looking for in this post here Tracker List from Accounts.

    I have added the top button options to lets me select a Report from Accounts. I have it appearing and when I press Select From Reports I get the option to select my Account Reports, when I choose the one I need it closes the popup window but it is not adding the results from the report into my Target List.

    Has anyone else had this isse?

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  10. #10
    nicpon is offline Sugar Community Member
    Join Date
    Oct 2005
    Posts
    18

    Default Re: Target list can add account

    This is almost exactly what I'm looking for, but I needed it to work with my custom module. I followed the suit of implementing it for Accounts module, but I replaced all instances of Accounts with my custom module and almost everything works.
    I can create target lists with my custom module and records do get attached. However, when I view the campaign its showing 0 in Targets in List column. When I click on the specific target list I can see the records from custom module and corresponding emails. Where is the definition of what campaign uses to get those emails? I assume that my module is not used during that computation, any other ideas anyone?
    I'm on 5.2 and the base for custom module is Person
    Last edited by nicpon; 2010-01-05 at 12:13 PM.

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: 14
    Last Post: 2012-01-26, 02:58 PM
  2. use custom field account to search contact in target list
    By Beranrdi in forum Developer Help
    Replies: 9
    Last Post: 2010-07-30, 05:12 AM
  3. 让target list可以添加account
    By eddiechen in forum Chinese
    Replies: 19
    Last Post: 2010-04-27, 08:34 AM
  4. Replies: 0
    Last Post: 2008-04-16, 07:27 AM
  5. Replies: 0
    Last Post: 2007-04-27, 05:01 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
  •