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) »
  • Problems finding Group Filtering Code
Pages: [1]

Author Topic: Problems finding Group Filtering Code  (Read 673 times)

matthewboh

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 2
Problems finding Group Filtering Code
September 02, 2012, 12:49:05 pm
I've got the proper code in a new report to select the groups that I want and have the code for the tags, but I can't find how it builds the SELECT statement and am having problems getting it into my custom report.

I'm using the Constituent Report (Summary) for a template, and I can see that the code generates the following SQL
Code: [Select]
WHERE  contact_civireport.id IN (
                          SELECT DISTINCT cgroup_civireport.contact_id
                          FROM civicrm_group_contact cgroup_civireport
                          WHERE cgroup_civireport.group_id IN (7) AND cgroup_civireport.status = 'Added'
                           )

When I try to copy the portions that I want to my new report, I can't find the specific lines where the SQL statement is created. I've tried a couple of print statements along with grep for "SELECT DISTINCT" for all the report php files, and I'm just missing it.

Any pointers?

Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Problems finding Group Filtering Code

This forum was archived on 2017-11-26.