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) »
  • How to create a view that shows relationships of current authenticated user?
Pages: [1]

Author Topic: How to create a view that shows relationships of current authenticated user?  (Read 1001 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
How to create a view that shows relationships of current authenticated user?
July 03, 2011, 11:55:23 pm
I've been tinkering with Views for about an hour with no luck.  I found a couple of posts but nothing did quite what I wanted.

It's very simple, I'd like a View in Drupal that shows all the relationships in CiviCRM of the currently-logged in user.

For instance:

Person A:
  Currently authenticated user
  Related to: Person B and Person C.

Person B:
   Related to: Person A

Person C:
  Related to: Person A


I'd like a view that, when Person A is logged in, will show them names Person B and Person C.

How to configure with Views and Relationships?  Sorry if this is a dumb questions, don't use Views a great deal and I've never done this before.  (using 3.4.4 civi)

« Last Edit: July 04, 2011, 12:02:51 am by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: How to create a view that shows relationships of current authenticated user?
July 04, 2011, 04:07:53 am
I will take a peek at some we have done but don't recall any of them focussing in relationship
would it be something like - View Type is CiviCRM RElationshps - then also make a Views Relationship of eg Contact A - that will provide you with the Contact Data Fields eg Display Name.
Next step would be to crank in an argument for the 'current user' though I suspect that might need another Relationship to get it back to the CiviContact.
Hmm or is it a View type of CiviCRM Contact and then use the View Relationship to grab the relationship
Okay yep is beginning to sound complex  :P
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

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: How to create a view that shows relationships of current authenticated user?
July 04, 2011, 04:12:36 am
actually was some discussion here http://forum.civicrm.org/index.php/topic,7516.msg33424.html#msg33424

also check the views i pasted here which were tying together indivs with their companies
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

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How to create a view that shows relationships of current authenticated user?
July 04, 2011, 12:11:46 pm
I think the missing key is Arguments.  It won't work without an argument for the 'current user' which we can get and put in the link.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • How to create a view that shows relationships of current authenticated user?

This forum was archived on 2017-11-26.