Results 1 to 6 of 6

Thread: Accounts customs module subpanel

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

    Default Accounts customs module subpanel

    I have a custom module that is a subpanel of Accounts. I have selected what fields I want to show in the subpanel under Accounts.

    The fields I want are showing but I cannot make a field a link. In the custom modules cusotm directory I have added 'link' => true to the fields in the listviewdefs.php and the listview has the correct fields as links.

    I then added the same to the subpanels and Accountdefault.php but the fields in the subpanel are not lisks, they don't change. Is this the worng file

    /custom/modules/**custom_module**/metadata/subpanels/Accountdefault.php

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  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: Accounts customs module subpanel

    Hi Chris

    The account name field on Custom Module subpanel may looks like that:
    PHP Code:
            'account_name'=>array(
                 
    'vname' => 'LBL_LIST_ACCOUNT_NAME',
                
    'widget_class' => 'SubPanelDetailViewLink',
                 
    'module' => 'Accounts',
                
    'width' => '31%',
                
    'target_record_key' => 'account_id',
                
    'target_module' => 'Accounts',
            ), 
    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.

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

    Default Re: Accounts customs module subpanel

    Hi Thanks for teh reply.

    Account Name is not a problem. The issue is in the detail view of an Account I scroll down to the subpanels and in one of my custom modules I have my fields showing but they are not in link for. See the attached image.

    I have said
    PHP Code:
    'link' => true
    for these fields in the listviewdefs.php and in the Accountdefault.php in custom modules metadata and metadata subpanels in the custom directory. Done a repair and rebuild and tried other repairs also, extensions, etc...
    Attached Images Attached Images  
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  4. #4
    blitz2190 is offline Senior Member
    Join Date
    Jul 2009
    Posts
    105

    Default Re: Accounts customs module subpanel

    you need to add
    Code:
    'widget_class' => 'SubPanelDetailViewLink',
    to which ever field you want linked

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

    Default Re: Accounts customs module subpanel

    Thanks,

    That worked a charm.

    Rgds
    Chirs
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  6. #6
    blitz2190 is offline Senior Member
    Join Date
    Jul 2009
    Posts
    105

    Default Re: Accounts customs module subpanel

    no problem glad to help

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Accounts Subpanel of custom module
    By lowJack01 in forum Help
    Replies: 3
    Last Post: 2009-02-17, 03:57 PM
  2. More than one hop in subpanel under Accounts module
    By jchinnasamy in forum Developer Help
    Replies: 1
    Last Post: 2008-11-19, 09:30 AM
  3. How to add Accounts as subpanel in custom module
    By rraushan2007 in forum Developer Help
    Replies: 6
    Last Post: 2008-09-25, 04:34 AM
  4. Add Accounts Subpanel to the Contacts Module
    By chrislynch8 in forum Developer Help
    Replies: 3
    Last Post: 2008-06-05, 06:19 PM
  5. Custom subpanel in the accounts module
    By jmcalderond in forum General Discussion
    Replies: 0
    Last Post: 2008-05-30, 09:53 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
  •