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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Custom report parameters vs query string data
Pages: [1]

Author Topic: Custom report parameters vs query string data  (Read 548 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Custom report parameters vs query string data
June 05, 2012, 04:41:40 pm
I have a custom report that is mostly working. It is based on the activity detail report that comes with civicrm.  I added the ability to pass in (via query string url) the report types wanted, ie only phone calls, or only meetings are needed.   This allows me use it as a drill-down link that is dynamically generated on another summary report.     The typical query string looks like:

Code: [Select]
?reset=1&force=1&activity_date_time_from=20120601&activity_date_time_to=20120630&contact_source_value=Smith,Shelley&activity_type_id=2
The problem is that the activity date range and source contact are shown at the top of the report results, the activity type is not shown.  When the user views the report, the data is correct. BUT, if they click "Print report" or "Export to CSV" the activity type restriction is not honored. (Although the date range and source contact is honored. )

How can I get the "activity type" to be treated the same way as the activity dates?
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Custom report parameters vs query string data

This forum was archived on 2017-11-26.