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 CiviCase (Moderator: Dave Greenberg) »
  • Reports
Pages: [1]

Author Topic: Reports  (Read 1728 times)

Glenstorm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Reports
August 25, 2011, 06:13:36 am
Hello,

I am a new user to CiviCase.  We are implementing CiviCase in a social service organization and would like to be able to print out reports based on the Case types over a certain period of time.  For instance in the past month how many Cases did we serve dealing with Heating Assistance, Rent Assistance, Employment, Legal Aid etc...

I imagine others are interested in tracking this also, but I can't figure out the way to view this.  I am comfortable coding in PHP and MYSQL and could see myself hard coding a page to query the DB directly, but is this necessary? 

I've looked at creating a new report from a template, but can't figure out how to get access to the CiviCase data.

I've seen mention of "hooks" but can't really find an explanation of what that means or how/where to use them. 

Finally, where are the report files stored in the Civic directories?  I've poked around but can't find them.

Thanks for any insights.

Dan

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Reports
August 25, 2011, 01:04:24 pm
I am uncertain if this can be done in a CiviReport--could be that it can, I just don't know.

I have coded similar reports in Drupal, however. You don't need any hooks, just the Drupal API. All case records are stored in the database, in the civicrm_case table.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Reports
August 28, 2011, 03:42:33 pm
http://drupal.demo.civicrm.org/civicrm/report/case/detail?reset=1

Glenstorm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Reports
August 29, 2011, 06:11:48 pm
Cowboy,

The link doesn't work for me.  I tried logging in but it tells me access denied.

Also, I am running Civicrm in Joomla.  Is the suggestions above still apply?

Glenstorm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Reports
August 29, 2011, 08:07:57 pm
One other aspect of my challenge is that I seem to have limited access to the generic Activity Report in the Reports menu.  I can pull up the Initial page when selecting Reports -> Activity Report,  but if I select print report or PDF I get an plain black text on a white background error page saying I don't have permission to access /administrator/ on this server.  This error is confusing me because there is no problem accessing the initial administration pages which are also found in the /administrator/ directory.

Any thoughts out there about this?

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Reports
August 29, 2011, 09:51:47 pm
It's the Case Detail report. Should work the same on Joomla I think. Possibly you need to enable it from Administer -> Reports -> Manage Templates.

Not sure about the /administrator error.

Glenstorm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Reports
August 30, 2011, 06:54:11 am
Cowboy,

Thanks for the clarification.  I have discovered that within the Registered Templates page there are two reports listed associated with Civicase. 

Case Time Spent Report
Case Summary Report

I can't figured out how to get these listed in the Reports menu though.
They are listed as enabled in the Template Manager.

I had removed a number of reports (Membership, Grants, Events)  upon the initial install to minimize the choices.  Right now in the Report Listing Page I can only see the sections labeled Contact Reports and Mail Reports.  I can't remember how to edit this list.  I feel like I've looked  at every option the the Administer menu.

Thanks!

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Reports
August 31, 2011, 05:31:20 am
Create Report from Template, go through the preview process, then expand the Create Report accordian section and fill out the details including the "Include Report in Navigation Menu?" checkbox.

Glenstorm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Reports
August 31, 2011, 07:24:47 am
Cowboy,

Awesome! Thanks so much.  That is exactly what I was missing.  However the error I mentioned above pops up when I try to save the Report.

Hopefully someone else has some insight about why the error is happening.

Thanks Again!



Glenstorm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Reports
August 31, 2011, 05:53:20 pm
One more question:

What is the the correct directory for reports to be stored in?  I've tweaked the server to give a more detailed error. It seems the error occurs when trying to access:

 /administrator/?option=com_civicrm&task=civicrm/report/case/summary

Does this look right?  I am not sure I understand the directory syntax Civicrm is using. . .

Thanks


demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Reports
August 31, 2011, 06:04:06 pm
It's not a directory structure, just a way of mapping urls to code functions.

Anyway usually there is an "index2.php" somewhere in there with Joomla. Looking at the public demo, which seems to have civicase enabled at the moment, the url looks like this:

http://joomla.demo.civicrm.org/administrator/index2.php?option=com_civicrm&task=civicrm/report/case/summary&reset=1

Glenstorm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.61
  • PHP version: 5.2.17
Re: Reports
September 01, 2011, 11:17:01 am
Did Civicrm version 4.0 do away with the index2.php file?  Because upon inspection I don't have that file anywhere in my directories. 

Otherwise, I am at a loss of what I should do next to resolve this.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Reports
September 01, 2011, 11:27:08 am
That index2.php is actually a Joomla file AFAIK. Perhaps take a fresh copy of Joomla and make sure you have all the files...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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

This forum was archived on 2017-11-26.