display data stored in one module in another module

I have address field which is stored in accounts module while creating the account. Here what I want is this address field should reflect in all modules can any one clearly explain me about this query .thanks in advance.
  • this is my editviews defs for quote module:
    please freind tell me where to add this below code 
     and what should i replace in place of this account_name and   'phone_office' => 'phone_work',
    array (
                'name' => 'account_name',
                'displayParams' =>
                array (
                  'key' => 'billing',
                  'copy' => 'primary',
                  'billingKey' => 'primary',
                  'additionalFields' =>
                  array (
                    'phone_office' => 'phone_work',
                  ),
                ),
              ),

    the code given by u is at end of this page.
    this is my editviewsdef.php
    <?php

    $module_name = 'qte_Quote';
    $viewdefs [$module_name] = 
    array (
      'EditView' => 
      array (
        'templateMeta' => 
        array (
          'form' => 
          array (
            'buttons' => 
            array (
              0 => 'SAVE',
              1 => 'CANCEL',
            ),
          ),
          'maxColumns' => '2',
          'widths' => 
          array (
            0 => 
            array (
              'label' => '10',
              'field' => '30',
            ),
            1 => 
            array (
              'label' => '10',
              'field' => '30',
            ),
          ),
          'useTabs' => false,
          'tabDefs' => 
          array (
            'LBL_EDITVIEW_PANEL2' => 
            array (
              'newTab' => false,
              'panelDefault' => 'expanded',
            ),
            'LBL_EDITVIEW_PANEL3' => 
            array (
              'newTab' => false,
              'panelDefault' => 'expanded',
            ),
          ),
        ),
        'panels' => 
        array (
          'lbl_editview_panel2' => 
          array (
            0 => 
            array (
              0 => 
              array (
                'name' => 'account_name_c',
                'studio' => 'visible',
                'label' => 'LBL_ACCOUNT_NAME',
              ),
              1 => 
              array (
                'name' => 'name',
                'label' => 'LBL_NAME',
              ),
            ),
            1 => 
            array (
              0 => 
              array (
                'name' => 'quotenumber_c',
                'label' => 'LBL_QUOTENUMBER',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
              1 => 
              array (
                'name' => 'tax_c',
                'label' => 'LBL_TAX',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
            ),
            2 => 
            array (
              0 => 
              array (
                'name' => 'is_discount_at_order_level_c',
                'label' => 'LBL_IS_DISCOUNT_AT_ORDER_LEVEL',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'disabled' => 'disabled',
                  ),
                ),
              ),
              1 => 
              array (
                'name' => 'total_discount_c',
                'label' => 'LBL_TOTAL_DISCOUNT',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
            ),
            3 => 
            array (
              0 => 
              array (
                'name' => 'description',
                'label' => 'LBL_DESCRIPTION',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
              1 => 
              array (
                'name' => 'subtotal_c',
                'label' => 'LBL_SUBTOTAL',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
            ),
            4 => 
            array (
              0 => 
              array (
                'name' => 'expiration_date_c',
                'label' => 'LBL_EXPIRATION_DATE',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
              1 => 
              array (
                'name' => 'totalamount_c',
                'label' => 'LBL_TOTALAMOUNT',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
            ),
            5 => 
            array (
              0 => 
              array (
                'name' => 'status_c',
                'studio' => 'visible',
                'label' => 'LBL_STATUS',
              ),
            ),
          ),
          'lbl_editview_panel3' => 
          array (
            0 => 
            array (
              0 => 
             array (
                'name' => 'billing_address_street',
                'hideLabel' => true,
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'billing',
                  'rows' => 2,
                  'cols' => 30,
                  'maxlength' => 150,
                ),
              ),
            ),
           ),
        ),
      ),
    );
    ?>
  • <?php
    $module_name = 'qte_Quote';
    $viewdefs [$module_name] = 
    array (
      'EditView' => 
      array (
        'templateMeta' => 
        array (
          'form' => 
          array (
            'buttons' => 
            array (
              0 => 'SAVE',
              1 => 'CANCEL',
            ),
          ),
          'maxColumns' => '2',
          'widths' => 
          array (
            0 => 
            array (
              'label' => '10',
              'field' => '30',
            ),
            1 => 
            array (
              'label' => '10',
              'field' => '30',
            ),
          ),
          'useTabs' => false,
          'tabDefs' => 
          array (
            'LBL_EDITVIEW_PANEL2' => 
            array (
              'newTab' => false,
              'panelDefault' => 'expanded',
            ),
            'LBL_EDITVIEW_PANEL3' => 
            array (
              'newTab' => false,
              'panelDefault' => 'expanded',
            ),
          ),
        ),
        'panels' => 
        array (
          'lbl_editview_panel2' => 
          array (
            0 => 
            array (
              0 => 
              array (
                'name' => 'account_name_c',
                'displayParams' =>
                array (
                  'key' => 'billing',
                  'copy' => 'primary',
                  'billingKey' => 'primary',
                ),
              ),
              1 => 
              array (
                'name' => 'name',
                'label' => 'LBL_NAME',
              ),
            ),
            1 => 
            array (
              0 => 
              array (
                'name' => 'quotenumber_c',
                'label' => 'LBL_QUOTENUMBER',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
              1 => 
              array (
                'name' => 'tax_c',
                'label' => 'LBL_TAX',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
            ),
            2 => 
            array (
              0 => 
              array (
                'name' => 'is_discount_at_order_level_c',
                'label' => 'LBL_IS_DISCOUNT_AT_ORDER_LEVEL',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'disabled' => 'disabled',
                  ),
                ),
              ),
              1 => 
              array (
                'name' => 'total_discount_c',
                'label' => 'LBL_TOTAL_DISCOUNT',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
            ),
            3 => 
            array (
              0 => 
              array (
                'name' => 'description',
                'label' => 'LBL_DESCRIPTION',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
              1 => 
              array (
                'name' => 'subtotal_c',
                'label' => 'LBL_SUBTOTAL',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
            ),
            4 => 
            array (
              0 => 
              array (
                'name' => 'expiration_date_c',
                'label' => 'LBL_EXPIRATION_DATE',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
              1 => 
              array (
                'name' => 'totalamount_c',
                'label' => 'LBL_TOTALAMOUNT',
                'displayParams' => 
                array (
                  'field' => 
                  array (
                    'readonly' => 'readonly',
                  ),
                ),
              ),
            ),
            5 => 
            array (
              0 => 
              array (
                'name' => 'status_c',
                'studio' => 'visible',
                'label' => 'LBL_STATUS',
              ),
            ),
          ),
          'lbl_editview_panel3' => 
          array (
            0 => 
            array (
              0 => 
             array (
                'name' => 'billing_address_street',
                'hideLabel' => true,
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'billing',
                  'rows' => 2,
                  'cols' => 30,
                  'maxlength' => 150,
                ),
              ),
            ),
           ),
        ),
      ),
    );
    ?>
  • Really friend i am disturbing u to much sorry for the trouble i have applied this code but its not working can u tell where this code went wrong.sorry my friend once again
  • It should work.
    Create an account with all address field.
    Select that account in editview of contract/quote and see address fields are populated or not.
    Send me edit-view screen shoot.
  • I am sending you screen shot of  accounts_editview,accounts_detailview,quote_editview.quote_detailview please go through it.Friend I am really thankfull for your continuous response.

  • yes freind iam getting the values in address field in editview but when I select any account than the field values are populating.
    but before selecting there will be default account name, for that also it should show address fields.frend please help me regarding this plz plz.