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) »
  • Suppress column value in custom report
Pages: [1]

Author Topic: Suppress column value in custom report  (Read 648 times)

sggreener

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
    • The SpatialDB Advisor
  • CiviCRM version: 4.6.15
  • CMS version: Joomla 5.5.1
  • MySQL version: 5.6.29
  • PHP version: 5.3.8
Suppress column value in custom report
November 01, 2012, 02:28:02 am
I have a custom report that I have written in PHP.

I is working fine except that I want to suppress the duplicate values of the receipt date after the first has been reported.

The relevant bit of the PHP is:

Code: [Select]
function __construct( )
  {
    $this->_columns =
      array(
        'Banking_Invoice_Summary' => array(
          'alias'  => 'bh',
          'dao'    => 'CRM_Contact_DAO_Contact',
          'fields' => array(
            'rdate'       => array('title' => ts('Receipt Date'),'required' => true,'no_repeat' => true),
            'description' => array('title' => ts('Description'), 'required' => true),
            'amount'      => array('title' => ts('Amount'),      'required' => true),
            'number'      => array('title' => ts('Number'),      'required' => true),
                           ),
          'filters' => array(    
            'rdate' => array('title' => 'Banking Date Range',
                             'operatorType' => CRM_Report_Form::OP_DATE ),
                            ),
                                  ),
      );
      parent::__construct( );
  }

I was hoping that the 'no_repeat' => true against the rdate field would work but it doesn't.

The SQL is properly sorted before the data rows are fed into the report.

Any suggestions as to what I can do? I have looked at how to do this in the actually MySQL SELECT statement but the lack of analytics seems to make this impossible to achieve.

regards
Simon

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Suppress column value in custom report

This forum was archived on 2017-11-26.