Results 1 to 9 of 9

Thread: Subpanels View Question

  1. #1
    aalphin is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default Subpanels View Question

    We're using Version 5.2.0j
    I've created a new module that has a many-to-many relationship with Accounts. Therfore in the detail view of any particular account this new module comes up as a Subpanel. When you want to create a new entry for all of the other sub-panels and hit 'create', the entry fields open up right there within the accounts detail for you to enter your data. However, on my new module, when i hit 'create' it opens it up on a new screen.

    How do i get my new modules subpanel to open like all of the others, and open right there within the Accounts detail?

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Subpanels View Question

    That sounds curious ... do you mean that the custom module Create function opens a new window/tab in your browser ... with just that module residing in the window?

    Would like to see a screenshot

  3. #3
    aalphin is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default Re: Subpanels View Question

    No, i mean after i've created the module and want to start using it to enter data. So i've created a new module. It shows up as a subpanel under Accounts just like it's supposed to. However, when i hit 'create' in my subpanel it brings up a new screen to enter data into the fields. When you hit 'create' in all of the other subpanels under Accounts, the fields open up right there under Accounts. This is what I want my modules subpanel to do as well.....

    The way i want my subpanel to 'open' is represented in attached, which shows the 'opportunities' subpanel open after i have hit 'create: Accounts detail normal.GIF

    The way my subpanel (called CX_test2) is opening, on a different page, is represented in attached: My Module_newpage.GIF

    Does that make sense?
    Thanks.
    Attached Images Attached Images   

  4. #4
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Subpanels View Question

    Have you tried this in the normal (Sugar) template?

    Not all templates work ... or are not created equal

  5. #5
    aalphin is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default Re: Subpanels View Question

    Not sure...i created it in the module builder , starting with the template labled 'basic'.
    Is that what you mean by "normal Sugar Template"
    thanks.

  6. #6
    aalphin is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default Re: Subpanels View Question

    Ah wait, i think you meant the normal sugar 'theme'.
    Yes, ive tried it in Sugar, Sugar Classic, etc....Same problem on them, they all open a new page when trying to enter data into my subpanel.

  7. #7
    aalphin is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default Re: Subpanels View Question

    Sales Agility - any more ideas on this problem?

  8. #8
    cynz is offline Junior Member
    Join Date
    Nov 2009
    Posts
    1

    Default Re: Subpanels View Question

    Hi aalphin,
    the default behavor of the create button on the subpanel causes the system to open in full form..

    You need to change the button to use the widget_class SubPanelTopButtonQuickCreate

    replace:
    Code:
     'top_buttons' => array(
    		array('widget_class' => 'SubPanelTopCreateButton'),
    to:
    Code:
     'top_buttons' => array(
    		array('widget_class' => 'SubPanelTopButtonQuickCreate'),

    There is a secondary issue you may encounter depending on how your relationship's are setup; where the "loading" message appears and the form won't appear...

    If you encounter this the problem lays in the custom\modules\accounts\Ext\Layoutdefs\layoutdefs. ext.php

    The problem is in the array where it defines the module of the subpanel ... you will need to change it from:

    PHP Code:
    $layout_defs["Accounts"]["subpanel_setup"]["accounts_yourmodulename"] = array ( 
    To:
    PHP Code:
    $layout_defs["Accounts"]["subpanel_setup"]["yourmodulename"] = array ( 
    Note: yourmodulename must be in lower case....



    Hope this helps..


    Regards,

  9. #9
    aalphin is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default Re: Subpanels View Question

    thanks cynz. I changed the code you recommended in: SugarModules/modules/(my module name)/metadata/subpanels/default.php

    this seems to be governing the default settings for the buttons on my subpanel, but im not a super-experienced programmer.

    However, it didn't seem to work...same result of Create button opens in full form.

    Does that seem like the right spot to change it?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. view permission in subpanels
    By subhajit in forum Help
    Replies: 1
    Last Post: 2009-09-16, 12:30 PM
  2. SubPanels and Edit View
    By kasperd in forum Developer Help
    Replies: 1
    Last Post: 2009-02-02, 10:04 AM
  3. No line wrap in detail view or subpanels
    By obrienmd in forum Help
    Replies: 4
    Last Post: 2007-11-15, 10:16 PM
  4. question regading subpanels on installation
    By bjmcatilo29 in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-05-30, 11:09 PM
  5. change Detail view to editview greyed out with subpanels
    By sugarcare in forum Developer Help
    Replies: 2
    Last Post: 2006-09-22, 12:57 AM

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
  •