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) »
  • Customization of Activity Report: Add Contact Field for Target
Pages: [1]

Author Topic: Customization of Activity Report: Add Contact Field for Target  (Read 616 times)

Detlev

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
    • Software für Engagierte e.V.
  • CiviCRM version: 4.5
  • CMS version: Drupal
Customization of Activity Report: Add Contact Field for Target
April 02, 2015, 02:52:23 pm
We have a use case, where we need to display the current_employer field for the target contact (and also sort by that field).

I set up a customized report (using the recipe from the CiviCRM Cookbook) and was able to do certain customization tasks. However, adding other contact fields seems to be tricky...

Had anybody out there done something like that and could give me a hint?


Cheers,
Detlev

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Customization of Activity Report: Add Contact Field for Target
April 03, 2015, 09:18:00 am
I have not found it too tricky to add contact fields, you have to add them to the array of columns and check that they are set up in such a way that the SQL being build by the _select, _from and _where methods can actually pull them together correctly?
You might want to try a debug on your query in the postProcess method, just before the buildRows method is called.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Customization of Activity Report: Add Contact Field for Target
April 03, 2015, 06:10:00 pm
I don't know how far it takes you - but the extended reports extension has an activity report in it which allows some more control over the 3 sets of contact fields (target, source & assigned).

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) »
  • Customization of Activity Report: Add Contact Field for Target

This forum was archived on 2017-11-26.