Results 1 to 8 of 8

Thread: Can't get subpanel to display in Accounts

  1. #1
    jpmahala is offline Junior Member
    Join Date
    Sep 2007
    Posts
    4

    Default Can't get subpanel to display in Accounts

    I have used module builder to create a module that allows us to enter serial numbers and link them to an account.

    The linking works, since I have created a one to many relationship between the Accounts (set as primary) and the Serial Numbers.

    Unfortunately, the subpanel will not display under the Accounts module.

    I have noticed that if I create a many to many relationship, Accounts does show up as a subpanel to the Serial Numbers, but I still do not see Serial Numbers under Accounts.

    Any help would be greatly appreciated.

    John Mahala
    KRB Machinery

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Can't get subpanel to display in Accounts

    We need to know what version you are working with to relly answer this question. With a one-to-many relationship there shouldn't be a subpanel for t he 'one' side of the relationship, only the many side. As far as the many-to-many it should show up as a subpanel in both there. Possibly you are having a problem with permissions on th ecache/ or custom/ directories and the required files are not being written or you are having a browser cache issue and the filesjust are not being rendered.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    jpmahala is offline Junior Member
    Join Date
    Sep 2007
    Posts
    4

    Default Re: Can't get subpanel to display in Accounts

    We are running CE 5.2.0c.

    I will check the permissions and try it again.

    Thanks,
    John

  4. #4
    jpmahala is offline Junior Member
    Join Date
    Sep 2007
    Posts
    4

    Default Re: Can't get subpanel to display in Accounts

    I checked the permissions and it still does not work.

    I'm not sure I agree with your definition of one to many relationships and how they drive subpanels though.

    In this example, we build equipment that is sent to our customers. If each piece of equipment gets a serial number before it is shipped to the customer, that serial number is linked to that same account. In the serial number module, I need to link to one account, and in the account module I want to have visibility of all serial numbers linked to that customer.

    The link is then ONE customer to MANY serial numbers. When I set it up this way, I can go to the serial number module and link to an account. However, It does not allow the serial number subpanel to display in an account detail view. I can even go to the studio and see the serial number subpanel listed within the account module.

    Again, if I set it up as a many to many relationship (not what I really want), I do get an account subpanel in the serial number module, but still no serial number subpanel in the account module.

    Any further help would be greatly appreciated.

    John Mahala

  5. #5
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Can't get subpanel to display in Accounts

    I think you are right, I seem to have had it backwards. I am doing some testing now for another customer and I will get back to this thread when that is complete.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  6. #6
    jpmahala is offline Junior Member
    Join Date
    Sep 2007
    Posts
    4

    Default Re: Can't get subpanel to display in Accounts

    Thanks.

    Looking forward to hearing about what you find.

  7. #7
    tyagiakhil is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    52

    Default Re: Can't get subpanel to display in Accounts

    Hi

    Try this to get a subpanel, put this code in sugar_root/custom/Extension/modules/Accounts/Ext/Layoutdefs/layoutdefs.ext.php or create one if this file not exist.
    Replace serialnumber with your module name, consider case sensitive issue. After doing these changes , do a repair.

    $layout_defs["Accounts"]["subpanel_setup"]["accounts_searilnumber"] = array (
    'order' => 100,
    'module' => 'Serialnumber',
    'subpanel_name' => 'default',
    'sort_order' => 'asc',
    'sort_by' => 'id',
    'title_key' => 'LBL_SERIALNUMBER_ACCOUNTS_FROM_ACCOUNTS_TITLE',
    'get_subpanel_data' => 'accounts_serialnumber',
    'top_buttons' =>
    array (
    0 =>
    array (
    'widget_class' => 'SubPanelTopCreateButton',
    ),
    1 =>
    array (
    'widget_class' => 'SubPanelTopSelectButton',
    'popup_module' => 'Serialnumber',
    'mode' => 'MultiSelect',
    ),
    ),
    );


    Thanks

  8. #8
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Can't get subpanel to display in Accounts

    Check you logs, one common mistake is the field name in vardefs not matching get_subpanel_data in the layoutdefs. If there is any error causing the subpanel not to be displayed it will be logged by SubpanelTiles (around line 261)

    M
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2010-01-05, 08:20 AM
  2. error in subpanel display
    By atik in forum Help
    Replies: 2
    Last Post: 2009-02-19, 11:02 AM
  3. Subpanel Display For New Module
    By prabukanth in forum Developer Help
    Replies: 0
    Last Post: 2008-10-13, 01:47 PM
  4. subpanel display help
    By marketadvantage in forum Developer Help
    Replies: 3
    Last Post: 2008-07-24, 04:24 PM
  5. Replies: 1
    Last Post: 2008-06-11, 04:32 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
  •