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 with CiviCRM Contacts - How to implement "primary members only" filter?
Pages: [1]

Author Topic: Views with CiviCRM Contacts - How to implement "primary members only" filter?  (Read 1242 times)

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Views with CiviCRM Contacts - How to implement "primary members only" filter?
November 30, 2011, 08:41:51 pm
I'm trying to create a series of dynamic sildeshows with views.

Each is to display member names and logos belonging a specific membership type, I am using the "CiviCRM Member: Membership Type (= Platinum) " filter, where "platinum" is the membership type.

I have the view built and working, but I cannot figure out how to limit the list only to "primary members".

As I have many contacts attached per primary member I have no way of avoiding a countless number of duplicates in the return, not to mention that only the primary member has an image attached.   :'(

Any ideas?


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 with CiviCRM Contacts - How to implement "primary members only" filter?
December 01, 2011, 01:00:58 am
haven't had to look for this - but another option might be to make a smart group from your primary members and then use that to filter you desired contacts
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

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Views with CiviCRM Contacts - How to implement "primary members only" filter?
December 09, 2011, 03:50:22 pm
Hmmm.

I have a smart group with about 300 contacts in it when viewed from "manage groups", of ID 3.

When I add the CiviCRM Contacts: Group(s) (= 3) Filter to the view I get the following:

-------
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_contact.group' in 'where clause'
------

Also, when I simply add the field : CiviCRM Contacts: Group(s) (Group(s))

I get :

-----
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_contact.group' in 'field list'
-----


Oh boy. Does anyone have any clues as to how one may track this down?
« Last Edit: December 09, 2011, 03:58:10 pm by DerekL »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Views with CiviCRM Contacts - How to implement "primary members only" filter?
December 09, 2011, 05:40:36 pm

all the views integration code is under: drupal/modules/views/

your best bet would be to track it from there and trace whats happening. You might want to ping "jalama" on the #civicrm irc channel and see if he can help point u in the right direction

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Views with CiviCRM Contacts - How to implement "primary members only" filter?

This forum was archived on 2017-11-26.