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 Drupal Modules (Moderator: Donald Lobo) »
  • Views generates a warning when trying to filter on Group membership
Pages: [1]

Author Topic: Views generates a warning when trying to filter on Group membership  (Read 1008 times)

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Views generates a warning when trying to filter on Group membership
January 09, 2013, 01:52:07 am
Using D6 I'm setting up a View to list some contacts from my CiviCRM database. Ideally I'd like to filter by group membership  to show only the contacts that i'm interested in. but when I create the filter "CiviCRM Contacts: Group(s) and specify the group id in the filter.

I then get a warning:
"user warning: Unknown column 'civicrm_contact.group' in 'where clause' query"

This is with CiviCRM 4.1.6. I've hunted around to see if I can see if this is an issue that has since been fixed in a later CiviCRM version, but can't spot anything.

Does anyone know if this a known issue, and if so, what the solution might be. I know that I have used this as a filter successfully on other installations.

Thanks for any input.

Graham
Graham Mitchell
http://mc3.coop

balleyne

  • I’m new here
  • *
  • Posts: 14
  • Karma: 1
  • CiviCRM version: 4.3.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Views generates a warning when trying to filter on Group membership
January 25, 2013, 03:05:50 am
I'm experiencing this error (not a warning) on D7 with CiviCRM 4.2.6 as well...

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Views generates a warning when trying to filter on Group membership
January 25, 2013, 03:29:17 am
Can you post the full SQL query?
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.

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Views generates a warning when trying to filter on Group membership
January 28, 2013, 02:53:17 am
In my case this was resolved by redesigning my View. I originally set up the View as a CiviCRM Contact type view, which seemed sensible given that what i wanted to display was contact data. This gave me the 'unknown column' warning.

I did some reading around and found some useful information, elsewhere on this forum as I recall (although sadly I've not kept the link), which suggested a different approach:

Given that my goal was to display some organisation contact data, and some data from related individual contacts the advice was to set up the view as a CiviCRM Relationship type and specify the relationship/s that I wanted to focus on (in my case employee/employer). I was then able to specify data fields from the contacts on both sides of the relationship, and - most importantly in terms of this thread - I was able to successfully specify filters by Group ID.

This approach may work for you balleyne. It solved my problem, but I still don't understand why the filter based on "CiviCRM Contact(s): Group(s) Group(s)" didn't work as I'd hoped.

Best wishes
Graham
Graham Mitchell
http://mc3.coop

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Views generates a warning when trying to filter on Group membership
March 03, 2013, 08:51:44 pm
i think the group issue may get fixed with this patchhttp://issues.civicrm.org/jira/browse/CRM-12009
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Views generates a warning when trying to filter on Group membership

This forum was archived on 2017-11-26.