CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Access to field Supplemental Address 1 in a Membership Report
Pages: [1]

Author Topic: Access to field Supplemental Address 1 in a Membership Report  (Read 544 times)

David Hepper

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7.32
  • MySQL version: 5.5
  • PHP version: 5.4
Access to field Supplemental Address 1 in a Membership Report
February 17, 2014, 02:34:26 pm
Am I missing something to enable the use of Supplemental Address 1 in a Membership Report? Only Street Address is selectable. I can see custom fields for the Contact record (thanks, Eileen) but not this important field for creating an address list.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Access to field Supplemental Address 1 in a Membership Report
February 17, 2014, 02:57:13 pm
If you replace 

      'civicrm_address' =>
      array(
        'dao' => 'CRM_Core_DAO_Address',
        'fields' =>
        array(
          'street_address' => NULL,
          'city' => NULL,
          'postal_code' => NULL,
          'state_province_id' =>
          array('title' => ts('State/Province'),
          ),
          'country_id' =>
          array('title' => ts('Country'),
          ),
        ),
        'grouping' => 'contact-fields',
      ),

with

   + $this->getAddressColumns()

you will get a more full set of address fields.

If you have trouble getting the syntax CRM_Report_Form_Contribute_TopDonor uses this method of grabbing address fields

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

David Hepper

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7.32
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Access to field Supplemental Address 1 in a Membership Report - working
February 19, 2014, 01:50:22 pm
Thanks again, Eileen. That's working. I wonder why it isn't standard to show all fields? In the UK there are vast numbers of cases where the street address is insufficient. Also, it is standard to put the 'supplemental' as defined by Civi post-help before the Street Address.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Access to field Supplemental Address 1 in a Membership Report
February 20, 2014, 01:16:59 pm
I think it's more the organic growth thing than a decision.  You might post the alteration you are using as an issue in JIRA (preferably with a patch or even better a Pull request) & note that question on the issue.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Access to field Supplemental Address 1 in a Membership Report

This forum was archived on 2017-11-26.