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) »
  • How would I insert case details into an activity report?
Pages: [1]

Author Topic: How would I insert case details into an activity report?  (Read 790 times)

theMusician

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 3
  • CiviCRM version: 4.0 and 4.0.1
  • CMS version: Drupal 7.0
  • MySQL version: MySQL 5.x
  • PHP version: 5.2
How would I insert case details into an activity report?
June 27, 2011, 01:24:45 pm
I am working on modifying a report that I have been crafting based on the Activity Summary Report. The final addition I need for this report is the Case Status and Case Type fields and filters.

Looking at the Case Details template I see the following are included.

Code: [Select]
require_once 'CRM/Case/BAO/Case.php';
require_once 'CRM/Case/PseudoConstant.php';

With those included I can grab details of the cases by building the civicrm_case array in the __construct (). I added a line to the from statements so as to match the Details.php file but then I get a host of errors when I run the report. I printed the sql the report prints out and the following field is selected. case_civireport.id as civicrm_case_id, where does civireport come from? I cannot find in the code where civireport is called.

I have posted on http://pastebin.com/KTXMcuws pastebin the full php. Am I going about this the correct way or is their an easier method.

Thank you,

Max

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • How would I insert case details into an activity report?

This forum was archived on 2017-11-26.