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) »
  • Building New Reports from Scratch, and calculation operations
Pages: [1]

Author Topic: Building New Reports from Scratch, and calculation operations  (Read 2691 times)

GregoryHeller

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 3
Building New Reports from Scratch, and calculation operations
December 18, 2009, 05:20:19 pm
Two questions about CiviReports:

What is the process for building a new report from scratch (Rather than editing a template)?

Are there ways to create more complex calculations within a civireport? For example in the LYBUNT-like report that shows giving totals across many years, would it be possible to have a column that displays the increase or decrease in giving year over year in dollar amount, and/or percentage?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Building New Reports from Scratch, and calculation operations
December 18, 2009, 06:06:25 pm
You can do anything in a report that can be done w/ PHP :-)

An overview of how to build reports from scratch - written / contributed by Dave D from Physician Health Program (clap clap) is here:
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviReport+structure+and+customization
Protect your investment in CiviCRM by  becoming a Member!

leapywca

  • Guest
Re: Building New Reports from Scratch, and calculation operations
December 21, 2009, 01:33:40 pm
Our group has recently completed documentation on creating reports from scratch and our methods used for writing several custom reports.

http://wiki.civicrm.org/confluence/display/CRMUPCOMING/Custom+Reports+(How+to)

This documentation is new so please let me know if there is anything that needs to be added or clarified.

ahouse

  • Guest
Re: Building New Reports from Scratch, and calculation operations
July 15, 2010, 08:24:25 pm
I followed the written documentation concerning creating reports. However here is the error message I received when I run the report form the list.


Fatal error: require_once() [function.require]: Failed opening required 'CRM/Report/Form/Contact/Summary1.php' (include_path='.:/home/servername/public_html/CRM/sites/all/modules/civicrm:/home/servername/public_html/CRM/sites/all/modules/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/servername/public_html/CRM/sites/all/modules/civicrm/CRM/Core/Controller.php on line 366

thanks in advance for your assistance.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Building New Reports from Scratch, and calculation operations
July 16, 2010, 07:22:29 am
Did you configure your Custom Templates Directory and Custom PHP Files Directory from Administer > Configure > Global Settings > Directories? (It looks like that step is missing from the How To doc - so might be good to add it in since it's required if you're running the new reports from custom directory paths).
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Building New Reports from Scratch, and calculation operations

This forum was archived on 2017-11-26.