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) »
  • Current Employer
Pages: [1]

Author Topic: Current Employer  (Read 2100 times)

afawkes

  • Guest
Current Employer
October 13, 2009, 12:59:07 am
Hi All,

Could anyone give me any advice on how we can get the Current Employer field into the report criteria field so it can be displayed if necessary. I would help with working out Organisations attending events and attendee lists.

Any advice as always gratefully received.

many thanks in advance

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Current Employer
October 13, 2009, 08:02:51 am

check: http://wiki.civicrm.org/confluence/display/CRMDOC/CiviReport+structure+and+customization

you can extract the current employer field for an individual from civicrm_contact.organization_name

You will need to be comfortable with PHP/MySQL to enhance the reports to make these changes. if you do so, please publish your changes so others can benefit

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

afawkes

  • Guest
Re: Current Employer
November 04, 2009, 05:32:48 am
Just in case anyone wants to know about this. I needed to modify the php code here is an example which will include the current employer.

I inserted Organization Name in between Contact Name and ID . This is in the detail.php file in the contribute directory.

 array( 'display_name' =>
                                 array( 'title' => ts( 'Contact Name' ),
                                        'required'  => true,
                                        'no_repeat' => true ),
                                 'organization_name' =>
                                 array( 'title' => ts( 'Current Employer' ),
                                        'required'  => true,
                                        'no_repeat' => true ),
                                 'id'           =>
                                 array( 'no_display' => true,
                                        'required'  => true, ), ),

Hope it helps.

Ant

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Current Employer

This forum was archived on 2017-11-26.