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) »
  • child contacts not showing in parent search
Pages: [1] 2

Author Topic: child contacts not showing in parent search  (Read 3175 times)

sagraphics

  • I post occasionally
  • **
  • Posts: 40
  • Karma: -1
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.57
  • PHP version: 5.2.17
child contacts not showing in parent search
January 24, 2012, 05:08:08 am
I have had a play with smart groups feeding from groups and tags, but am finding some instability issues.

So I've decided to use nested groups to drill down my contacts on the front end, adding a profile for each group to provide a link straight through to a map of contacts in that particular group.  However, my thoughts were that if a contact was in a child group or grandchild group, listing all contacts for the parent group would display all contacts in the child and grandchild groups automatically - but no.

What am I doing wrong? ???

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: child contacts not showing in parent search
January 24, 2012, 06:25:36 am
I do not think you are doing something wrong, I have noticed in some cases too that adding a person to a child group does not automatically include them in the parent group. I have not paid any attention to it because I was fixing other things, but I would expect the same. I wil do a quick check in the manual (http://book.civicrm.org/user/).....
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: child contacts not showing in parent search
January 24, 2012, 06:29:28 am
From the manual:
Quote
In CiviCRM, this is done by creating one or more parent groups and then assigning other groups to them. When a user sends a mailing to a parent group or searches for contacts in a parent group, all contacts in the associated child groups are automatically included.

Looks like it only works from the parent down......
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

sagraphics

  • I post occasionally
  • **
  • Posts: 40
  • Karma: -1
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.57
  • PHP version: 5.2.17
Re: child contacts not showing in parent search
January 24, 2012, 06:39:43 am
Yes, I saw that same documentation.  And this is what I want it to do, but not for mailings, just searches.

for example, if I have a parent group called, England, which had child groups of Lancashire, Shropshire, Cheshire etc etc.  Lancashire then has child groups of each of the towns within it.

I then add contacts to each town as their group.

Now I want to view all the contacts in England group...the contacts do not show from the child groups.  Or I want to view all the contacts in Lancashire group, the child groups don't show, but according to the documentation, they should be automatically included into the parent group as per the hierarchy.

Please help?  Is this a bug?

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: child contacts not showing in parent search
January 24, 2012, 07:05:00 am
I have just asked, the behaviour we would both expect was confirmed as the correct expectation by Lobo :-) I will now check in the latest and greatest (version 4.1 which is under construction and soon to be released) what the behaviour actually is. If it does not do what we expect, it is a bug indeed. Let me get back to you...
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

sagraphics

  • I post occasionally
  • **
  • Posts: 40
  • Karma: -1
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.57
  • PHP version: 5.2.17
Re: child contacts not showing in parent search
January 24, 2012, 07:25:15 am
I have just checked on http://sandbox.joomla.civicrm.org/administrator with a test group, and it works as anticipated....why not on my install?

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: child contacts not showing in parent search
January 24, 2012, 07:26:11 am
What version are you on?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

sagraphics

  • I post occasionally
  • **
  • Posts: 40
  • Karma: -1
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.57
  • PHP version: 5.2.17
Re: child contacts not showing in parent search
January 24, 2012, 07:29:24 am
CiviCRM version: 4.0.8
CMS version: Joomla 1.7

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: child contacts not showing in parent search
January 24, 2012, 07:36:21 am
That is strange, I have no idea why you do not get the required process locally, especially as I am no expert on Joomla....but it should not make any difference. Let me have a play with the Drupal 4.1 version and see what results I get. Do you have a localized version (as in another language?)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

sagraphics

  • I post occasionally
  • **
  • Posts: 40
  • Karma: -1
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.57
  • PHP version: 5.2.17
Re: child contacts not showing in parent search
January 24, 2012, 08:20:01 am
No, just the normal english version.

I use multisite..could this be affecting?

sagraphics

  • I post occasionally
  • **
  • Posts: 40
  • Karma: -1
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.57
  • PHP version: 5.2.17
Re: child contacts not showing in parent search
January 24, 2012, 08:42:08 am
Now I understand what is happening - if you create the group first with the relevant parent, then add contacts to the group, then contacts are added to the parents listings.

However, if you add contacts to a new group then set the parent of this group, it doesn't dynamically add to the parent group.

Any work around?

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: child contacts not showing in parent search
January 24, 2012, 08:52:39 am
You can select tour children and add them all to a group per child group? Alternative woud be to do some MySql tweaking with the relevant table, civicrm_group_contact out of the top of my head
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

sagraphics

  • I post occasionally
  • **
  • Posts: 40
  • Karma: -1
  • CiviCRM version: 4.0.8
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.57
  • PHP version: 5.2.17
Re: child contacts not showing in parent search
January 24, 2012, 08:57:04 am
Quote from: Erik Hommel on January 24, 2012, 08:52:39 am
You can select tour children and add them all to a group per child group? Alternative woud be to do some MySql tweaking with the relevant table, civicrm_group_contact out of the top of my head

Not sure what you mean by 'select children and add'?

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: child contacts not showing in parent search
January 24, 2012, 09:00:18 am

Can you add another contact to the child group?

i think we basiclly reset the cache for parents when a child group changes and then recompute its children

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

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: child contacts not showing in parent search
January 24, 2012, 10:57:53 am
I mean if you use advanced search or custom search (this is the demo one : http://drupal.demo.civicrm.org/civicrm/contact/search/custom?csid=4&reset=1) to select members of several groups, and then use the results to add all selected contacts to the parent group?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • child contacts not showing in parent search

This forum was archived on 2017-11-26.