Results 1 to 6 of 6

Thread: Subpanel one to many

  1. #1
    item is offline Sugar Community Member
    Join Date
    Oct 2010
    Location
    BELGIUM
    Posts
    193

    Default Subpanel one to many

    Hi,
    i have a strange result :
    Patients = Accounts
    Prestations = Custom Module
    Institutions = Custom Module

    Why i have not Subpanel Prestations under Accounts (Patients) ?
    Can i activate or create a SubPanel ?
    First left picture : relation Accounts
    Second left picture : relation Prestations => custom module
    Right picture => Accounts in Studio

    When i click on relation on ppre_prestations_accounts, i have nothing in fields : Subpanel from Prestations

    Regards
    Attached Images Attached Images    

  2. #2
    item is offline Sugar Community Member
    Join Date
    Oct 2010
    Location
    BELGIUM
    Posts
    193

    Default Re: Subpanel one to many

    Hi,

    Can somebody help me wich file and her name to copy in :

    custom/extentions/modules/accounts/ext/layoutdefs/ ?

    for list prestations subpanel under acount detailview ?
    i have no files in : custom/extentions/modules/ppre_prestations/ext/layoutdefs/.
    Regards

  3. #3
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Subpanel one to many

    create a file in custom/Extension/modules/MODULE/Ext/Layoutdefs/SOMETHING.php

    in that php define a new subpanel as:


    PHP Code:
    <?php
    // @author Milos Miric aka eitrix
    $layout_defs["Accounts"]["subpanel_setup"]["accounts_prestations"] = array (
    // check here is accounts still name of module
      
    'order' => 100,
      
    'module' => 'Prestations'// check is this correct prestations module name
      
    'subpanel_name' => 'default',
      
    'sort_order' => 'asc',
      
    'sort_by' => 'id',
      
    'title_key' => 'LBL_ADD_LABEL_HERE',
      
    'get_subpanel_data' => 'ppre_prestations_accounts'//check if i typed correct
      
    'top_buttons' => 
      array (
        
    => 
        array (
          
    'widget_class' => 'SubPanelTopCreateButton',
        ),
        
    => 
        array (
          
    'widget_class' => 'SubPanelTopSelectButton',
          
    'mode' => 'MultiSelect',
        ),
      ),
    );
    ?>
    Make sure you have a default subpanel in modules/prestations/subpaneldefs

    make sure i named all stuff correct, you should have a picture what to do. Also repair is needed after this to rebuild extensions
    CRM Software Engineer
    Eontek - www.eontek.rs

  4. #4
    item is offline Sugar Community Member
    Join Date
    Oct 2010
    Location
    BELGIUM
    Posts
    193

    Default Re: Subpanel one to many

    Hi Eitrix,
    Thanks very much, resolved

    I think, deploy from Studio is not a good idea. Publish and Install is much better for control files.

    Regards

  5. #5
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Subpanel one to many

    yes it is
    CRM Software Engineer
    Eontek - www.eontek.rs

  6. #6
    item is offline Sugar Community Member
    Join Date
    Oct 2010
    Location
    BELGIUM
    Posts
    193

    Default Re: Subpanel one to many

    Hello,

    Realy strange issue always after a quickrepair/upgrade/studio work...i loose my subpanel.
    Patients = built-in Account module
    Prestation = custom module.

    PS : i have too french language installed

    Regards
    Attached Images Attached Images  
    CE 6.2.4
    Osx Server 10.5.8
    Apache - MySql - Php built-in
    sorry for my good english

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. custom subpanel to Subpanel Group tab
    By kinshibuya in forum Help
    Replies: 0
    Last Post: 2009-07-01, 07:19 PM
  2. HOW TO: Subpanel Changes (Override subpanel name)
    By luisfdo in forum Developer Tutorials
    Replies: 0
    Last Post: 2009-03-12, 12:27 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
  •