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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Options when search results are empty
Pages: [1]

Author Topic: Options when search results are empty  (Read 690 times)

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Options when search results are empty
January 31, 2015, 02:41:27 pm
I was working on a new set of things and I thought since I already know what I want some smart groups to be, why not just set them up now. But when I do the search and get no results I don't get the option to create a smart group (or anything else). First I needed to make sure that at least one record would meet the criteria. 
It's a small think but it seems a bit counter intuitive that I can't set my smart groups up in advance of adding data.  Maybe I'm wrong and this has been thought about before?

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: Options when search results are empty
February 02, 2015, 11:23:34 pm
A smart group is basically a search query that is run every time you open the group. It makes sense to me that you can not do that if the search query shows no results? But if more peeps see this as a gap in CiviCRM core you could always suggest it as a future feature?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: Options when search results are empty
February 04, 2015, 01:44:34 am
It's not that you can't do the query, the query runs, it just can't be saved. So to set things up in advance you need to basically create fake data. So for example I'm setting up some fields, and I know now that I will want a smart group made up of people who answer yes to one of the fields. Right now I have to set someone to yes before I can create that group even though I'm not collecting data yet. It's basically extra steps, not terrible but not really necessary and definitely not intuitive.

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: Options when search results are empty
February 04, 2015, 11:22:39 pm
I think intuitive is a subjective term  ;)
As stated, if more peeps think this is a necessary feature I would certainly advocate suggesting it. It is not something I personally have missed or have heard from my customers. But that is subjective too :-)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

ayduns

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 6
    • Squiffle Consulting
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7
Re: Options when search results are empty
February 05, 2015, 01:25:13 am
I've bumped into this a few times when trying to set up a collection of smart groups as saved searches.  It would be convenient to be able to save the smart group definition regardless of whether it has current members, although it is usually easy enough to create dummy data to allow the group to be saved then revert the data.

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: Options when search results are empty
February 05, 2015, 04:29:32 pm
Yes it has caught us out too when we are setting up sites for clients and pre-empting what they will need by way of groups and as per the original post we have to make a dummy contact with all the right factors. Not a biggie but just one of those minor short lived irritations.
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

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Options when search results are empty
February 05, 2015, 04:51:44 pm
Would it be useful to add this info (need at least one result for search to create smart group - add a dummy contact to set up beforehand) to the user and admin guide  http://book.civicrm.org/user/current/organising-your-data/smart-groups/ ?


mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: Options when search results are empty
March 14, 2015, 02:09:28 am
Yes definitely, since I don't think the behavior is documented anywhere (at least that I found).  But I do think it is a UI issue as well, certainly at least there should be an appropriate message.   I'll take a look at that as well.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Options when search results are empty

This forum was archived on 2017-11-26.