Results 1 to 2 of 2

Thread: HOWTO: Prospect list subpanel for Leads in SugarCEM 6.4 (and maybe 6.3)

  1. #1
    gunni is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Cologne, Germany
    Posts
    364

    Default HOWTO: Prospect list subpanel for Leads in SugarCEM 6.4 (and maybe 6.3)

    As the old subpanel stopped working for me, there were some changes needed to show a target list subpanel in Sugar 6.4. My old implementation lead to an sql error as it did leave the leads table in the FROM clause, but had leads.id in the JOIN.
    Now here are the two files to create to get it working in 6.4:

    custom\Extension\modules\Leads\Ext\Vardefs\prospec tlists_leads_Leads.php
    PHP Code:
    <?php
    $dictionary
    ["Lead"]["fields"]["prospect_list_leads"] = array (
      
    'name' => 'prospect_list_leads',
      
    'type' => 'link',
      
    'relationship' => 'prospect_list_leads',
      
    'source' => 'non-db',
      
    'vname' => 'LBL_PROSPECTLISTS_LEADS_FROM_PROSPECTLISTS_TITLE',
    );
    custom\Extension\modules\Leads\Ext\Layoutdefs\pros pectlists_leads_Leads.php
    PHP Code:
    <?php
    $layout_defs
    ["Leads"]["subpanel_setup"]['prospect_list_leads'] = array (
      
    'order' => 100,
      
    'module' => 'ProspectLists',
      
    'subpanel_name' => 'default',
      
    'sort_order' => 'asc',
      
    'sort_by' => 'id',
      
    'title_key' => 'LBL_PROSPECTLISTS_LEADS_FROM_PROSPECTLISTS_TITLE',
      
    'get_subpanel_data' => 'prospect_list_leads',
      
    'top_buttons' => 
      array (
        
    => 
        array (
          
    'widget_class' => 'SubPanelTopButtonQuickCreate',
        ),
        
    => 
        array (
          
    'widget_class' => 'SubPanelTopSelectButton',
          
    'mode' => 'MultiSelect',
        ),
      ),
    );
    Quick repair and Rebuild and you are done.

  2. #2
    dooban is offline Junior Member
    Join Date
    Nov 2011
    Posts
    3

    Default Re: HOWTO: Prospect list subpanel for Leads in SugarCEM 6.4 (and maybe 6.3)

    Worked on 6.3.1

    I am trying to do the same with Contacts module, but haven't succeeded. Anyone ?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 2011-06-10, 07:05 PM
  2. Leads Subpanel Field uUnder Target List
    By Niggy in forum Developer Help
    Replies: 2
    Last Post: 2011-01-20, 07:58 AM
  3. Leads and Prospect Lists
    By eSolutions in forum Help
    Replies: 2
    Last Post: 2005-10-24, 07:31 AM
  4. Replies: 0
    Last Post: 2005-10-12, 02:30 AM
  5. Replies: 0
    Last Post: 2005-10-11, 02:15 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
  •