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 CiviEvent (Moderator: Yashodha Chaku) »
  • Search Builder Issue
Pages: [1]

Author Topic: Search Builder Issue  (Read 633 times)

sriraman.v

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Drupal
  • MySQL version: 5.5.8
  • PHP version: 5.2.9
Search Builder Issue
August 01, 2011, 01:45:30 am
Hi ,

i m using civicrm 3.3 in my application.i used to store the participant details in civicrm_participant table.

In Search Builder, to search the particpant details depending upon their status.

so i navigate to search builder page by using the url civicrm/contact/search/builder&reset=1.

In this page i selected the record type as "Participant" => "Participant Status" then operator type as "=" and value as 16(which is completed status)

It is showing all the contacts  instead of contacts with complete status.

Whereas i tried the similar one for searching the participant depending upon the Courses eg)  the record type as "Participant" => "Course Type" ,it works fine.

Can some one suggest with searching the participant based on the participant status ?

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 Builder Issue
August 01, 2011, 02:12:49 am
Hi,

Why don't you use the participant search or advanced search ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

sriraman.v

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Drupal
  • MySQL version: 5.5.8
  • PHP version: 5.2.9
Re: Search Builder Issue
August 01, 2011, 03:32:53 am
Hi Xavier,

Thanks for suggestion. :)

As my objective is to search  the number of participants  based on participant details  and Course Type to create a smart group.For this i will be using the || and && condition in Search builder


I believe,this would be feasible only in search builder while in participant search  and advance search ,combination of these conditions is not possible.

Could you advice on this please ?

Regards,
Sriraman.V

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Search Builder Issue
August 01, 2011, 06:11:04 am
I am just wondering if the field names offered for participant are the correct ones?  If you do an participant import you have both "participant status" and "participant status ID" . 
and in the civicrm_participant table the column name is status_Id.

It is all rather confusing though.  From looking back at the imports I did 6 months ago it seems like I had to match "Registered" with "participant status ID" to get a participant import to work correctly, which doesn't make a lot of sense.



sriraman.v

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Drupal
  • MySQL version: 5.5.8
  • PHP version: 5.2.9
Re: Search Builder Issue
August 01, 2011, 06:34:00 am
Hi,

As per your view , i confirm that field name in which details is updated in civicrm_participant is correct.

But this thing is working fine in Find Participants Screen.

i was Strange to know it doesn't work in Search Builder .Then i debugged the code and i found that "Participant Status" condition is not appended to the Query generated  where as for course type conditions is added and it is working.

Any Idea how to fix this issue ?

Regards,
Sriraman.v



Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Search Builder Issue

This forum was archived on 2017-11-26.