How to write custom reports in Drupal
Posted
by Nicholai
on Stack Overflow
See other posts from Stack Overflow
or by Nicholai
Published on 2010-02-27T22:32:33Z
Indexed on
2010/03/25
17:53 UTC
Read the original article
Hit count: 477
drupal
|drupal-views
What's the "right" way in Drupal to create reports? I was hoping to use a view but am not having much luck. My goal is to create a table of rows containing three fields: user name, location, SUM of volunteer hours. Once I have this part working, I plan to expose filters for Location and Date.
Views Calc only allows you to group by one field. I know Crystal Reports and MSSQL Reporting Services and I was hoping to find a similar kind of thing for Drupal. Is there a framework, examples, or a module to help with this, or do I need to write a custom module implementing the views_alter_SQL hook to get the desired data for each report?
EDIT: I ended up getting it to work with BIRT reports, which gave a lot more power than Views could allow. Code is on my blog: http://nicholaiburton.com/blog/2010/creating-custom-reports-for-drupal
© Stack Overflow or respective owner