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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search via relationships
Pages: [1]

Author Topic: Search via relationships  (Read 1249 times)

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Search via relationships
September 23, 2010, 10:39:26 am
I have a client with a specific problem that is also a general problem I've run into earlier.

The specific problem is that the client is searching for individuals living in an area defined by the first letter of the postal code. This is straightforward with the search builder, but it doesn't include individuals whose addresses are defined by the household they belong to [presumably, the sql is searching only their addresses].

To try and solve this - I can create a group of households whose address matches the first letter of the postal code, but how can I then use this to get all the individuals of those households?

When I use the advanced search, I can find everyone with a specific relationship to a specific contact, but what I want (and this is the more general requirement) is to be able to search for all individuals that have a relationship with any of the members of a group (in this case, all household members of the household group I have created above).

Any ideas?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Search via relationships
September 23, 2010, 10:57:49 am
Hi,

I'd write a custom search.

http://en.flossmanuals.net/CiviCRM/DevelopCustomSearches
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search via relationships

This forum was archived on 2017-11-26.