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) »
  • Custom fields
Pages: [1]

Author Topic: Custom fields  (Read 1308 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Custom fields
November 15, 2010, 05:21:31 pm
I have had quite a few requests for custom fields on reports - however, as both our customers and Lobo have pointed out - too many custom fields look like a dog's breakfast. Dave said it would make sense to include custom fields but to use accordian UI to make them less intrusive so with some hard-work, ingenuity and, mostly by asking Kyle Jaster of Rayogram for help I managed to come up with a revised criteria.tpl which does the trick.

Could do with more testing so please give it a whirl & log a JIRA if it seems all good.

https://svn.fuzion.co.nz/repos/fuzion-code/trunk/civicrm/core/templates/CRM/Report/Form/Criteria.tpl

Also, in the same location is my pledge LYBUNT & SYBUNT reports & pledge summary with custom data

https://svn.fuzion.co.nz/repos/fuzion-code/trunk/civicrm/core/CRM/Report/Form/Pledge

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom fields
November 22, 2010, 10:52:08 am
I replaced the current 3.3 svn version of Criteria.tpl with the version in your repo. I tested w/ Event Participant Report (list) and Donor Report (Detail) in my 3.3 sandbox and did not get expected result. I have the sample custom fields for Participant and Contribution in this DB. Rather than showing those custom data sets in the Columns (or Filters), the new version broke up the existing fields into multiple fieldsets - each fieldset had the same title "Main Fields". Also the styling of the accordion wasn't the expected standard show / hide div style for a child accordion. I've attached a screenshot.

Not sure if I'm not understanding the expected results of using this? Is there a requirement to make changes in each of the enclosing report templates or php code?
Protect your investment in CiviCRM by  becoming a Member!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Custom fields
November 28, 2010, 06:57:14 pm
Hi Dave - try now
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom fields
November 30, 2010, 04:28:48 pm
There were still some display issues as well as extra css class definitions. I've cleaned things up and committed under this 3.3.0 issue:
http://issues.civicrm.org/jira/browse/CRM-7152

Would be great if you could test it out ASAP with your report configurations.

Thanks for pushing this forward and doing the bulk of the needed work.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Custom fields

This forum was archived on 2017-11-26.