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

Thread: ALL subpanels disappear from Parent module after displaying tab for custom module

  1. #1
    danheff is offline Senior Member
    Join Date
    Aug 2008
    Posts
    90

    Default ALL subpanels disappear from Parent module after displaying tab for custom module

    Hi.

    I created a custom module and related it to Accounts in Module Builder.

    After deploying, I created a relate field in Studio called Account Name and related it to Accounts. Then created many more fields and played with layouts, etc.

    Once I chose to display the tab under "Configure Tabs" in the admin area, ALL subpanels for Accounts disappeared...including opportunities, contacts, etc.

    When I look at the subpanels for Accounts in Studio, i can see the custom module subpanel (although it has a somewhat comically long label...how to fix that?) and I can edit the layout.

    As soon as I slide the module from Display to Hide in the configure tabs area, All the subpanels (except my custom module) reappear.

    Any ideas? I've done all sorts of repairs and rebuilds without any luck...

    Thanks.

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

    Default Re: ALL subpanels disappear from Parent module after displaying tab for custom module

    When the subpanels disappear do you see the page footers etc?

    It sounds to me as if a PHP error occurs in your subpanel that causes the page to die.
    Maybe enable error_reporting and display_errors in your php.ini and try to trace the error.

    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

  3. #3
    danheff is offline Senior Member
    Join Date
    Aug 2008
    Posts
    90

    Default Re: ALL subpanels disappear from Parent module after displaying tab for custom module

    Hi and thanks for the response.
    Although I am possibly doing something wrong, I just changed (in php.ini)

    display_errors= On

    error_reporting was already on (=E_ALL).

    No errors are displayed, the Account Detail View simply ends before the Subpanels begin...

    Any other places to look?

    Thanks and Happy New Year!

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

    Default Re: ALL subpanels disappear from Parent module after displaying tab for custom module

    This is extremely difficult to debug.

    I suggest you start by adding an "echo 'HERE';" to your subpanel and then see if it displays at all.
    Then start moving the echo to where it gets included and keep going up the chain reading the code until you can spot a problem.

    Maybe post the code of the subpanel (default.php) for us to look at.

    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

  5. #5
    danheff is offline Senior Member
    Join Date
    Aug 2008
    Posts
    90

    Default Re: ALL subpanels disappear from Parent module after displaying tab for custom module

    here is the php code from custom/modules/oandt_facilities/metadata/subpanels...is that the correct location? (Happy New Year, btw)

    (oandt_facilities is my new module, of course)

    <?php
    // created: 2008-12-30 17:05:35
    $subpanel_layout['list_fields'] = array (
    'name' =>
    array (
    'vname' => 'LBL_NAME',
    'widget_class' => 'SubPanelDetailViewLink',
    'width' => '45',
    ),
    'date_modified' =>
    array (
    'vname' => 'LBL_DATE_MODIFIED',
    'width' => '45',
    ),
    'edit_button' =>
    array (
    'widget_class' => 'SubPanelEditButton',
    'module' => 'oandt_facilities',
    'width' => '4',
    ),
    'remove_button' =>
    array (
    'widget_class' => 'SubPanelRemoveButton',
    'module' => 'oandt_facilities',
    'width' => '5',
    ),
    );
    ?>

  6. #6
    danheff is offline Senior Member
    Join Date
    Aug 2008
    Posts
    90

    Default Re: ALL subpanels disappear from Parent module after displaying tab for custom module

    Anyone have an idea?

    The killer part of this is, the module itself looks great! All the parts seem to work (not that its very complicated).

    The gigantic obstacle preventing full deployment is that it brings down ALL Accounts subpanels.

    Would love some help on this if anyone has suggestions...
    THanks!

  7. #7
    lowJack01 is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Albuquerque, NM
    Posts
    86

    Default Re: ALL subpanels disappear from Parent module after displaying tab for custom module

    I had a similar problem last month:

    http://www.sugarcrm.com/forums/showthread.php?t=41247

    I hope this helps!
    Thank you,

    Jackie Trent
    Independent Contractor
    Sugar - 5.0.0d, 5.0.0f
    PHP Version 5.1.6
    MySQL 5.0.58

  8. #8
    danheff is offline Senior Member
    Join Date
    Aug 2008
    Posts
    90

    Default Re: ALL subpanels disappear from Parent module after displaying tab for custom module

    Thanks for the response.

    I'm not really sure what to change in these files to make the custom subpanel (not to mention all the other subpanels) reappear.

    I took a look at the "Subpanels Explained" page of the SugarCRM Wiki and can't even find the files that are referred to within (Namely "layout_defs.php" which is supposedly in modules/(module)/, but isn't...I am Sugar 5.0.0f).

    Anyways, I'm a bit of a novice in the .php area, but if this is what typically happens after using Studio to deploy a custom module without a few tweaks to the code, that is fine...I guess my question is whether something is screwed up in the deployment or whether there are just additional steps to achieve full functionality.

    So, is there a step-by-step on changes/additions to code required following deployment of custom module X which is related to existing module Y to display Y's subpanels?

    Thanks.

  9. #9
    lowJack01 is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Albuquerque, NM
    Posts
    86

    Default Re: ALL subpanels disappear from Parent module after displaying tab for custom module

    Danheff:

    I understand your frustration!

    The Wiki article

    http://www.sugarcrm.com/wiki/index.p...s_in_Sugar_5.0


    is a step by step guide to creating a subpanel. However, I have been trying for a month to get it working. I'd be interested to know how many other people have been successful at this. Please let me know if you do get the process to work. I would appreciate any input at this point.

    Last month and earlier today both, I found that I had editted the wrong layoutdefs file. I had a bit of a panic today, because I'm working in my production environment, and I hadn't been backing up my files before editting! Here are the file paths of some different layoutdefs for the accounts module, that I have editted to bring my subpanels back (except for the custom module's):

    custom/modules/Accounts/Ext/Layoutdefs/
    custom/Extension/modules/Accounts/Ext/Layoutdefs

    However, I am still trying to get my subpanel to display. I would like to get into some in-depth collaboration on this, because I obviously could use some input.
    Last edited by lowJack01; 2009-01-15 at 11:01 PM.
    Thank you,

    Jackie Trent
    Independent Contractor
    Sugar - 5.0.0d, 5.0.0f
    PHP Version 5.1.6
    MySQL 5.0.58

  10. #10
    danheff is offline Senior Member
    Join Date
    Aug 2008
    Posts
    90

    Default Re: ALL subpanels disappear from Parent module after displaying tab for custom module

    Hey Jackie.
    So, when you deployed your new module and configured tabs such that the tab appeared and the module could be accessed, were you initially able to see all subpanels in the related module EXCEPT for the new one, or did you have my problem, wherein displaying/hiding the new module in the configure tabs section of the admin area acts basically as a toggle between showing all subpanels and no subpanels for the related module?
    (Sorry, thats an incredibly long-winded question, but hopefully it makes sense...i'm trying to figure out if I'm starting out with a big error before I even start looking at the .php code...)

    Are you considering upgrading to 5.2 soon? Wonder if that will take care of some of this nonsense...

    Cheers.

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: 6
    Last Post: 2011-03-29, 10:40 AM
  2. Custom Module Sub Panel not displaying in Accounts
    By avagarwal in forum Developer Help
    Replies: 3
    Last Post: 2010-11-10, 04:51 PM
  3. DetailView Subpanels error in a Custom Module
    By pniranjan in forum Developer Help
    Replies: 1
    Last Post: 2008-04-21, 11:23 PM
  4. Displaying Activites and History on custom module.
    By dblake in forum Developer Help
    Replies: 5
    Last Post: 2007-09-07, 01:47 PM
  5. Replies: 17
    Last Post: 2006-09-22, 05:48 PM

Tags for this Thread

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
  •