Results 1 to 1 of 1

Thread: Problem with subpanel

  1. #1
    fbrites is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Lisbon, Portugal
    Posts
    77

    Default Problem with subpanel

    Hi,

    I created module called 'Agenciados' and now I'm having a problem with the 'Agenciados' subpanel.

    I don't understand because it gives this error. We have created several modules and I had never done this.

    In the module 'Documents' and' Contacts' I have the subpanel 'Agenciados'.
    When I do 'Select' 'Agenciados', opens the popup window but not seeing the search or the list (view image: http://www.dibconsulting.com/sites/i...agenciados.jpg )

    I have seen the files' popupdefs.php ',' searchdefs.php 'and' listviewdefs.php 'and not encountered any error. The files are:

    popupdefs.php
    PHP Code:
    $module_name 'Agenciados';
    $_module_name 'Agenciados';
    $popupMeta = array('moduleMain' => $module_name,
                            
    'varName' => $module_name,
                            
    'orderBy' => $_module_name.'.name',
                            
    'whereClauses' => 
                                array(
    'name' => $_module_name '.name'
                                    ),
                                
    'searchInputs'=> array($_module_name'_number''name''priority','status'),
                                
    'listview' => 'modules/' $module_name'/metadata/listviewdefs.php',
                                
    'search'   => 'modules/' $module_name '/metadata/searchdefs.php',
                                
                            ); 
    searchdefs.php
    PHP Code:
    $module_name 'Agenciados';
      
    $searchdefs[$module_name] = array(
                    
    'templateMeta' => array(
                    
    'maxColumns' => '3'
                                
    'widths' => array('label' => '10''field' => '30'),                 
                               ),
                               
    'layout' => array(                      
                   
    'basic_search' => array(
                   
    'name'
            array(
    'name'=>'current_user_only''label'=>'LBL_CURRENT_USER_FILTER''type'=>'bool'),
                                ),
                    
    'advanced_search' => array(
                    
    'name'
            array(
    'name' => 'assigned_user_id''label' => 'LBL_ASSIGNED_TO''type' => 'enum''function' => array('name' => 'get_user_array''params' => array(false))),
                            ),
                        ),
                    ); 
    listviewdefs.php
    PHP Code:
    $module_name 'Agenciados';
    $listViewDefs[$module_name] = array(
        
    'NAME' => array(
            
    'width' => '32'
            
    'label' => 'LBL_NAME'
            
    'default' => true,
            
    'link' => true),    
        
    'ASSIGNED_USER_NAME' => array(
            
    'width' => '9'
            
    'label' => 'LBL_ASSIGNED_TO_NAME',
            
    'default' => true),
    ); 
    Someone can help me?

    Thanks
    Last edited by fbrites; 2008-06-13 at 11:39 AM.
    Fábio Brites
    <Sugar 6.>
    <Windows XP>

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Subpanel NOT displaying duplicate entries
    By Durrill in forum Developer Help
    Replies: 2
    Last Post: 2012-03-29, 10:46 AM
  2. Missing subpanel in parent detail view
    By purplewave in forum Developer Help
    Replies: 0
    Last Post: 2008-02-18, 04:46 PM
  3. A contacts subpanel working subpar
    By tweiss in forum Help
    Replies: 0
    Last Post: 2008-02-13, 08:38 PM
  4. Subpanel problem
    By Matthias.Qwerty in forum Developer Help
    Replies: 3
    Last Post: 2007-11-29, 09:39 AM
  5. subPanel problem
    By tarze in forum Developer Help
    Replies: 1
    Last Post: 2005-12-07, 01:55 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
  •