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.
Parents
  • --- You need to create the address field in all desired modules.
    (Copy address field defination from \cache\modules\Accounts\Accountvardefs.php and add in your module in upgrade safe manner Path \custom\Extension\modules\YourModule\Ext\Vardefs\yourAddressFied.php )

    After this hit Quick Repair and Rebuild and see address field is created.

    ---  Secondly after adding field you need to show field in editviewdefs.php,detailviewdefs.php.
     (For this copy address field(billing,shipping) arrays from \modules\Accounts\metadata\editviewdefs.php ,\modules\Accounts\metadata\detailviewdefs.php and add in your module's edit/deailviewdefs.php in upgrade safe manner Path :custom/modules/YourModule/metadate/editORdeailviewdefs.php)

    Waleed!
  • Dear dear dear friend In address field we don't only have street field add all fields man like this.
    -----------------------editview-------------------
               array (
                'name' => 'billing_address_street',
                'hideLabel' => true,
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'billing',
                  'rows' => 2,
                  'cols' => 30,
                  'maxlength' => 150,
                ),
              ),

              array (
                'name' => 'shipping_address_street',
                'hideLabel' => true,
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'shipping',
                  'copy' => 'billing',
                  'rows' => 2,
                  'cols' => 30,
                  'maxlength' => 150,
                ),
              ),
        -----------------------------detailview----------------------
        
        
                  array (
                'name' => 'billing_address_street',
                'label' => 'LBL_BILLING_ADDRESS',
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'billing',
                ),
              ),

              array (
                'name' => 'shipping_address_street',
                'label' => 'LBL_SHIPPING_ADDRESS',
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'shipping',
                ),
              ),
        
    After adding this check address field is appearing in quote/contract module as same as present in account's edit and detail view.
    See accounts edit detail view in sugar an confirm same appearing in quote/contract module.   
Reply
  • Dear dear dear friend In address field we don't only have street field add all fields man like this.
    -----------------------editview-------------------
               array (
                'name' => 'billing_address_street',
                'hideLabel' => true,
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'billing',
                  'rows' => 2,
                  'cols' => 30,
                  'maxlength' => 150,
                ),
              ),

              array (
                'name' => 'shipping_address_street',
                'hideLabel' => true,
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'shipping',
                  'copy' => 'billing',
                  'rows' => 2,
                  'cols' => 30,
                  'maxlength' => 150,
                ),
              ),
        -----------------------------detailview----------------------
        
        
                  array (
                'name' => 'billing_address_street',
                'label' => 'LBL_BILLING_ADDRESS',
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'billing',
                ),
              ),

              array (
                'name' => 'shipping_address_street',
                'label' => 'LBL_SHIPPING_ADDRESS',
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'shipping',
                ),
              ),
        
    After adding this check address field is appearing in quote/contract module as same as present in account's edit and detail view.
    See accounts edit detail view in sugar an confirm same appearing in quote/contract module.   
Children
No Data