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!
  • ok this is below vardefs.php

    <?php  //WARNING: The contents of this file are auto-generated


     // created: 2015-03-20 11:43:27
    $dictionary['Account']['fields']['billing_address_country']['required']=true;
    $dictionary['Account']['fields']['billing_address_country']['audited']=true;
    $dictionary['Account']['fields']['billing_address_country']['comments']='The country used for the billing address';
    $dictionary['Account']['fields']['billing_address_country']['merge_filter']='disabled';

     

     // created: 2015-02-24 07:19:53
    $dictionary['Account']['fields']['last_name_c']['labelValue']='Last Name';

     

     // created: 2015-03-20 11:43:20
    $dictionary['Account']['fields']['billing_address_postalcode']['required']=true;
    $dictionary['Account']['fields']['billing_address_postalcode']['audited']=true;
    $dictionary['Account']['fields']['billing_address_postalcode']['comments']='The postal code used for billing address';
    $dictionary['Account']['fields']['billing_address_postalcode']['merge_filter']='disabled';

     

    // created: 2015-03-16 14:15:50
    $dictionary["Account"]["fields"]["accounts_subsp_subscription_1"] = array (
      'name' => 'accounts_subsp_subscription_1',
      'type' => 'link',
      'relationship' => 'accounts_subsp_subscription_1',
      'source' => 'non-db',
      'module' => 'subsp_Subscription',
      'bean_name' => 'subsp_Subscription',
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_SUBSP_SUBSCRIPTION_1_FROM_SUBSP_SUBSCRIPTION_TITLE',
    );


     // created: 2015-03-03 13:28:01
    $dictionary['Account']['fields']['name']['len']='255';
    $dictionary['Account']['fields']['name']['required']=true;
    $dictionary['Account']['fields']['name']['comments']='';
    $dictionary['Account']['fields']['name']['merge_filter']='disabled';
    $dictionary['Account']['fields']['name']['audited']=true;
    $dictionary['Account']['fields']['name']['importable']='true';

     

    // created: 2015-03-13 11:43:39
    $dictionary["Account"]["fields"]["accounts_inv_invoice_1"] = array (
      'name' => 'accounts_inv_invoice_1',
      'type' => 'link',
      'relationship' => 'accounts_inv_invoice_1',
      'source' => 'non-db',
      'module' => 'Inv_Invoice',
      'bean_name' => 'Inv_Invoice',
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_INV_INVOICE_1_FROM_INV_INVOICE_TITLE',
    );


     // created: 2015-02-20 13:47:02
    $dictionary['Account']['fields']['upsell_opportunity_c']['labelValue']='Upsell Opportunity';

     

     // created: 2015-02-20 13:32:43
    $dictionary['Account']['fields']['shipping_address2_c']['labelValue']='Shipping Address2';

     

     // created: 2015-03-10 07:07:36
    $dictionary['Account']['fields']['account_type']['len']=100;
    $dictionary['Account']['fields']['account_type']['comments']='The Company is of this type';
    $dictionary['Account']['fields']['account_type']['merge_filter']='disabled';
    $dictionary['Account']['fields']['account_type']['required']=true;
    $dictionary['Account']['fields']['account_type']['audited']=true;
    $dictionary['Account']['fields']['account_type']['default']='';
    $dictionary['Account']['fields']['account_type']['options']='acc_type_c_list';

     

     // created: 2015-03-20 11:43:12
    $dictionary['Account']['fields']['billing_address_state']['required']=true;
    $dictionary['Account']['fields']['billing_address_state']['audited']=true;
    $dictionary['Account']['fields']['billing_address_state']['comments']='The state used for billing address';
    $dictionary['Account']['fields']['billing_address_state']['merge_filter']='disabled';

     

     // created: 2015-02-20 13:42:33
    $dictionary['Account']['fields']['update_flag_c']['labelValue']='Update Flag';

     

     // created: 2015-02-20 12:26:02
    $dictionary['Account']['fields']['billin_address2_c']['labelValue']='Billing Address2';

     

    // created: 2015-03-13 10:56:28
    $dictionary["Account"]["fields"]["accounts_qte_quote_1"] = array (
      'name' => 'accounts_qte_quote_1',
      'type' => 'link',
      'relationship' => 'accounts_qte_quote_1',
      'source' => 'non-db',
      'module' => 'qte_Quote',
      'bean_name' => 'qte_Quote',
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_QTE_QUOTE_1_FROM_QTE_QUOTE_TITLE',
    );


     // created: 2015-02-24 06:59:17
    $dictionary['Account']['fields']['salutation_c']['labelValue']='Salutation';

     

     // created: 2015-02-23 06:19:15
    $dictionary['Account']['fields']['primary_currency_c']['labelValue']='Primary Currency';

     

    // created: 2015-03-16 13:41:44
    $dictionary["Account"]["fields"]["accounts_ord_order_1"] = array (
      'name' => 'accounts_ord_order_1',
      'type' => 'link',
      'relationship' => 'accounts_ord_order_1',
      'source' => 'non-db',
      'module' => 'ord_Order',
      'bean_name' => 'ord_Order',
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_ORD_ORDER_1_FROM_ORD_ORDER_TITLE',
    );


     // created: 2015-02-20 13:03:50
    $dictionary['Account']['fields']['contact_phone_c']['labelValue']='Contact Phone';

     

     // created: 2015-03-20 11:43:34
    $dictionary['Account']['fields']['billing_address_city']['required']=true;
    $dictionary['Account']['fields']['billing_address_city']['audited']=true;
    $dictionary['Account']['fields']['billing_address_city']['comments']='The city used for billing address';
    $dictionary['Account']['fields']['billing_address_city']['merge_filter']='disabled';

     

     // created: 2015-02-20 13:11:13
    $dictionary['Account']['fields']['insert_flag_c']['labelValue']='Insert Flag';

     

    // created: 2015-03-13 11:25:04
    $dictionary["Account"]["fields"]["accounts_cont_contract_1"] = array (
      'name' => 'accounts_cont_contract_1',
      'type' => 'link',
      'relationship' => 'accounts_cont_contract_1',
      'source' => 'non-db',
      'module' => 'cont_Contract',
      'bean_name' => 'cont_Contract',
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_CONT_CONTRACT_1_FROM_CONT_CONTRACT_TITLE',
    );


     // created: 2015-02-24 07:19:38
    $dictionary['Account']['fields']['first_name_c']['labelValue']='First Name';

     

     // created: 2015-02-20 13:13:02
    $dictionary['Account']['fields']['middle_name_c']['labelValue']='Middle Name';

     

     // created: 2015-02-20 12:43:36
    $dictionary['Account']['fields']['billing_id_c']['labelValue']='billing id';

     

     // created: 2015-02-23 07:08:57
    $dictionary['Account']['fields']['status_c']['labelValue']='Status';

     

     // created: 2015-03-20 11:43:00
    $dictionary['Account']['fields']['billing_address_street']['comments']='The street address used for billing address';
    $dictionary['Account']['fields']['billing_address_street']['merge_filter']='disabled';
    $dictionary['Account']['fields']['billing_address_street']['required']=true;
    $dictionary['Account']['fields']['billing_address_street']['audited']=true;

     

     // created: 2015-02-20 13:00:47
    $dictionary['Account']['fields']['contactid_c']['labelValue']='ContactId';

     

     // created: 2015-02-23 08:09:30
    $dictionary['Account']['fields']['shipping_address_street']['comments']='The street address used for for shipping purposes';
    $dictionary['Account']['fields']['shipping_address_street']['merge_filter']='disabled';

     

     // created: 2015-03-17 06:50:50
    $dictionary['Account']['fields']['account_no_c']['labelValue']='Account no';

     

     // created: 2015-02-20 13:17:17
    $dictionary['Account']['fields']['preferred_billing_date_c']['options']='date_range_search_dom';
    $dictionary['Account']['fields']['preferred_billing_date_c']['labelValue']='Preferred Billing Date';
    $dictionary['Account']['fields']['preferred_billing_date_c']['enable_range_search']='1';

     

     // created: 2015-02-23 06:42:47
    $dictionary['Account']['fields']['secondary_currency_c']['labelValue']='Secondary Currency';

     

     // created: 2015-02-24 07:20:20
    $dictionary['Account']['fields']['email1']['required']=true;
    $dictionary['Account']['fields']['email1']['audited']=true;
    $dictionary['Account']['fields']['email1']['merge_filter']='disabled';

     

     // created: 2015-02-20 13:07:02
    $dictionary['Account']['fields']['facebook_username_c']['labelValue']='Facebook Username';

     

     // created: 2015-02-20 13:40:58
    $dictionary['Account']['fields']['shipping_id_c']['labelValue']='Shipping Id';

     
    ?>

Reply
  • ok this is below vardefs.php

    <?php  //WARNING: The contents of this file are auto-generated


     // created: 2015-03-20 11:43:27
    $dictionary['Account']['fields']['billing_address_country']['required']=true;
    $dictionary['Account']['fields']['billing_address_country']['audited']=true;
    $dictionary['Account']['fields']['billing_address_country']['comments']='The country used for the billing address';
    $dictionary['Account']['fields']['billing_address_country']['merge_filter']='disabled';

     

     // created: 2015-02-24 07:19:53
    $dictionary['Account']['fields']['last_name_c']['labelValue']='Last Name';

     

     // created: 2015-03-20 11:43:20
    $dictionary['Account']['fields']['billing_address_postalcode']['required']=true;
    $dictionary['Account']['fields']['billing_address_postalcode']['audited']=true;
    $dictionary['Account']['fields']['billing_address_postalcode']['comments']='The postal code used for billing address';
    $dictionary['Account']['fields']['billing_address_postalcode']['merge_filter']='disabled';

     

    // created: 2015-03-16 14:15:50
    $dictionary["Account"]["fields"]["accounts_subsp_subscription_1"] = array (
      'name' => 'accounts_subsp_subscription_1',
      'type' => 'link',
      'relationship' => 'accounts_subsp_subscription_1',
      'source' => 'non-db',
      'module' => 'subsp_Subscription',
      'bean_name' => 'subsp_Subscription',
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_SUBSP_SUBSCRIPTION_1_FROM_SUBSP_SUBSCRIPTION_TITLE',
    );


     // created: 2015-03-03 13:28:01
    $dictionary['Account']['fields']['name']['len']='255';
    $dictionary['Account']['fields']['name']['required']=true;
    $dictionary['Account']['fields']['name']['comments']='';
    $dictionary['Account']['fields']['name']['merge_filter']='disabled';
    $dictionary['Account']['fields']['name']['audited']=true;
    $dictionary['Account']['fields']['name']['importable']='true';

     

    // created: 2015-03-13 11:43:39
    $dictionary["Account"]["fields"]["accounts_inv_invoice_1"] = array (
      'name' => 'accounts_inv_invoice_1',
      'type' => 'link',
      'relationship' => 'accounts_inv_invoice_1',
      'source' => 'non-db',
      'module' => 'Inv_Invoice',
      'bean_name' => 'Inv_Invoice',
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_INV_INVOICE_1_FROM_INV_INVOICE_TITLE',
    );


     // created: 2015-02-20 13:47:02
    $dictionary['Account']['fields']['upsell_opportunity_c']['labelValue']='Upsell Opportunity';

     

     // created: 2015-02-20 13:32:43
    $dictionary['Account']['fields']['shipping_address2_c']['labelValue']='Shipping Address2';

     

     // created: 2015-03-10 07:07:36
    $dictionary['Account']['fields']['account_type']['len']=100;
    $dictionary['Account']['fields']['account_type']['comments']='The Company is of this type';
    $dictionary['Account']['fields']['account_type']['merge_filter']='disabled';
    $dictionary['Account']['fields']['account_type']['required']=true;
    $dictionary['Account']['fields']['account_type']['audited']=true;
    $dictionary['Account']['fields']['account_type']['default']='';
    $dictionary['Account']['fields']['account_type']['options']='acc_type_c_list';

     

     // created: 2015-03-20 11:43:12
    $dictionary['Account']['fields']['billing_address_state']['required']=true;
    $dictionary['Account']['fields']['billing_address_state']['audited']=true;
    $dictionary['Account']['fields']['billing_address_state']['comments']='The state used for billing address';
    $dictionary['Account']['fields']['billing_address_state']['merge_filter']='disabled';

     

     // created: 2015-02-20 13:42:33
    $dictionary['Account']['fields']['update_flag_c']['labelValue']='Update Flag';

     

     // created: 2015-02-20 12:26:02
    $dictionary['Account']['fields']['billin_address2_c']['labelValue']='Billing Address2';

     

    // created: 2015-03-13 10:56:28
    $dictionary["Account"]["fields"]["accounts_qte_quote_1"] = array (
      'name' => 'accounts_qte_quote_1',
      'type' => 'link',
      'relationship' => 'accounts_qte_quote_1',
      'source' => 'non-db',
      'module' => 'qte_Quote',
      'bean_name' => 'qte_Quote',
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_QTE_QUOTE_1_FROM_QTE_QUOTE_TITLE',
    );


     // created: 2015-02-24 06:59:17
    $dictionary['Account']['fields']['salutation_c']['labelValue']='Salutation';

     

     // created: 2015-02-23 06:19:15
    $dictionary['Account']['fields']['primary_currency_c']['labelValue']='Primary Currency';

     

    // created: 2015-03-16 13:41:44
    $dictionary["Account"]["fields"]["accounts_ord_order_1"] = array (
      'name' => 'accounts_ord_order_1',
      'type' => 'link',
      'relationship' => 'accounts_ord_order_1',
      'source' => 'non-db',
      'module' => 'ord_Order',
      'bean_name' => 'ord_Order',
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_ORD_ORDER_1_FROM_ORD_ORDER_TITLE',
    );


     // created: 2015-02-20 13:03:50
    $dictionary['Account']['fields']['contact_phone_c']['labelValue']='Contact Phone';

     

     // created: 2015-03-20 11:43:34
    $dictionary['Account']['fields']['billing_address_city']['required']=true;
    $dictionary['Account']['fields']['billing_address_city']['audited']=true;
    $dictionary['Account']['fields']['billing_address_city']['comments']='The city used for billing address';
    $dictionary['Account']['fields']['billing_address_city']['merge_filter']='disabled';

     

     // created: 2015-02-20 13:11:13
    $dictionary['Account']['fields']['insert_flag_c']['labelValue']='Insert Flag';

     

    // created: 2015-03-13 11:25:04
    $dictionary["Account"]["fields"]["accounts_cont_contract_1"] = array (
      'name' => 'accounts_cont_contract_1',
      'type' => 'link',
      'relationship' => 'accounts_cont_contract_1',
      'source' => 'non-db',
      'module' => 'cont_Contract',
      'bean_name' => 'cont_Contract',
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_CONT_CONTRACT_1_FROM_CONT_CONTRACT_TITLE',
    );


     // created: 2015-02-24 07:19:38
    $dictionary['Account']['fields']['first_name_c']['labelValue']='First Name';

     

     // created: 2015-02-20 13:13:02
    $dictionary['Account']['fields']['middle_name_c']['labelValue']='Middle Name';

     

     // created: 2015-02-20 12:43:36
    $dictionary['Account']['fields']['billing_id_c']['labelValue']='billing id';

     

     // created: 2015-02-23 07:08:57
    $dictionary['Account']['fields']['status_c']['labelValue']='Status';

     

     // created: 2015-03-20 11:43:00
    $dictionary['Account']['fields']['billing_address_street']['comments']='The street address used for billing address';
    $dictionary['Account']['fields']['billing_address_street']['merge_filter']='disabled';
    $dictionary['Account']['fields']['billing_address_street']['required']=true;
    $dictionary['Account']['fields']['billing_address_street']['audited']=true;

     

     // created: 2015-02-20 13:00:47
    $dictionary['Account']['fields']['contactid_c']['labelValue']='ContactId';

     

     // created: 2015-02-23 08:09:30
    $dictionary['Account']['fields']['shipping_address_street']['comments']='The street address used for for shipping purposes';
    $dictionary['Account']['fields']['shipping_address_street']['merge_filter']='disabled';

     

     // created: 2015-03-17 06:50:50
    $dictionary['Account']['fields']['account_no_c']['labelValue']='Account no';

     

     // created: 2015-02-20 13:17:17
    $dictionary['Account']['fields']['preferred_billing_date_c']['options']='date_range_search_dom';
    $dictionary['Account']['fields']['preferred_billing_date_c']['labelValue']='Preferred Billing Date';
    $dictionary['Account']['fields']['preferred_billing_date_c']['enable_range_search']='1';

     

     // created: 2015-02-23 06:42:47
    $dictionary['Account']['fields']['secondary_currency_c']['labelValue']='Secondary Currency';

     

     // created: 2015-02-24 07:20:20
    $dictionary['Account']['fields']['email1']['required']=true;
    $dictionary['Account']['fields']['email1']['audited']=true;
    $dictionary['Account']['fields']['email1']['merge_filter']='disabled';

     

     // created: 2015-02-20 13:07:02
    $dictionary['Account']['fields']['facebook_username_c']['labelValue']='Facebook Username';

     

     // created: 2015-02-20 13:40:58
    $dictionary['Account']['fields']['shipping_id_c']['labelValue']='Shipping Id';

     
    ?>

Children
No Data