Case line items on create view

I'm currently in the proces of doing an upgrade van 7.6 to 7.9.3 and almost all things seem to be working ( with a little bit of development here and there). One of the things that I still cant seem to migrate is the method for adding case line items in the create view of the case module. 

In 7.6 we have added a 'simple' subpanels-create layout to the create-actions view def. At first after upgrading I noticed that only the case line items where showing. I thought this was because of the fact that the create-actions view doesn't exist anymore ( I thought I read it somewhere ) in 7.9.x. 

So I recreated the viewdefs so it uses the create view and the subpanels-create layout. like this: 

 array(         array(             'layout' => array(                 'type' => 'default',                 'name' => 'sidebar',                 'components' => array(                     array(                         'layout' => array(                             'type' => 'base',                             'name' => 'main-pane',                             'css_class' => 'main-pane span8',                             'components' => array(                                 array(                                     'view' => 'create',                                 ),                                 array(                                     'layout' => 'subpanels-create',                                 ),                             ),                         ),                     ),                     array(                         'layout' => array(                             'type' => 'base',                             'name' => 'preview-pane',                             'css_class' => 'preview-pane',                             'components' => array(                                 array(                                     'layout' => 'preview',                                 ),                             ),                         ),                     ),                 ),                 'last_state' => array(                     'id' => 'create-default',                 ),             ),         ),     ), );

Its almost working. For some reason the header of the subpanel create ( which is a case line item subpanel ) does show but no content (edit mode) is shown. 

Someone got a clue on what would cause this behavior?

Parents
  • Hi Andre,

    I already implemented it like so: 

    <?php
    /*
    * Your installation or use of this SugarCRM file is subject to the applicable
    * terms available at
    * http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/.
    * If you do not agree to all of the applicable terms or do not have the
    * authority to bind the entity as an authorized representative, then do not
    * install or use this SugarCRM file.
    *
    * Copyright (C) SugarCRM Inc. All rights reserved.
    */

    $viewdefs['Cases']['base']['layout']['subpanels-create'] = array(
        'type' => 'subpanels',
        'components' => array(
            array(
                'layout' => 'subpanel-create',
                'label' => 'LBL_CASESLINEITEMS_SUBPANEL_TITLE',
                'override_subpanel_list_view' => 'subpanel-for-cases-create',
                'context' => array(
                    'link' => 'cli_caselineitems_cases',
                ),
            )
        ),
    );

    When I create a new case I see the following. As you can see I do see the header of the subpanel but the content of the line is not generated ( so I can't add line items)

Reply
  • Hi Andre,

    I already implemented it like so: 

    <?php
    /*
    * Your installation or use of this SugarCRM file is subject to the applicable
    * terms available at
    * http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/.
    * If you do not agree to all of the applicable terms or do not have the
    * authority to bind the entity as an authorized representative, then do not
    * install or use this SugarCRM file.
    *
    * Copyright (C) SugarCRM Inc. All rights reserved.
    */

    $viewdefs['Cases']['base']['layout']['subpanels-create'] = array(
        'type' => 'subpanels',
        'components' => array(
            array(
                'layout' => 'subpanel-create',
                'label' => 'LBL_CASESLINEITEMS_SUBPANEL_TITLE',
                'override_subpanel_list_view' => 'subpanel-for-cases-create',
                'context' => array(
                    'link' => 'cli_caselineitems_cases',
                ),
            )
        ),
    );

    When I create a new case I see the following. As you can see I do see the header of the subpanel but the content of the line is not generated ( so I can't add line items)

Children