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 CiviReport (Moderator: Dave Greenberg) »
  • Additional operators for selection list fields in CiviReport?
Pages: [1]

Author Topic: Additional operators for selection list fields in CiviReport?  (Read 1021 times)

Erich

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 1
Additional operators for selection list fields in CiviReport?
October 08, 2010, 01:15:45 pm
For fields which I've defined as alphanumeric text fields, CiviReport lets me choose such filter operators as Contains, Starts With, Ends With, Does Not Contain, Is Equal To, Is Not Equal To, and Is Empty (Null).

For fields which I've defined as checkbox fields (with predefined options), however, the only available hardcoded operator is "is one of" -- even though Search Builder lets me select from among =, !=, >, <, >=, <=, IN, LIKE, IS NULL, and IS NOT NULL.

Is there any way to get these same filter operators for checkbox fields in CiviReport? 

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: Additional operators for selection list fields in CiviReport?
October 09, 2010, 08:06:55 am

You will need to enhance the CiviReport code to allow it to handle other operators

if you do so, please submit your code back as a patch so we can incorporate it into core

thanx

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Additional operators for selection list fields in CiviReport?

This forum was archived on 2017-11-26.