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) »
  • DAO associated with custom field set
Pages: [1]

Author Topic: DAO associated with custom field set  (Read 392 times)

snoopers01

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: WordPress 3.5
  • MySQL version: 5.5.24
  • PHP version: 5.4.3
DAO associated with custom field set
October 14, 2014, 10:15:07 pm
Hi,

How do you determine the DAO class (something like CRM_Core_DAO...) associated with a custom data set's table (something like civicrm_value_test_1)?  I am customizing a report template to include a custom data field as a column (and maybe Group by).  It is a custom field set used for all contact types and this template is derived from a Contribution report.

Thanks!
Karen
« Last Edit: October 15, 2014, 04:06:27 am by snoopers01 »

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: DAO associated with custom field set
October 14, 2014, 11:42:47 pm
There is no specific DAO generated for a Custom Table. There is a property in the Core_Report_Form class that determines if custom tables are checked, perhaps you can achieve what you want by setting that to TRUE?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: DAO associated with custom field set
October 15, 2014, 07:33:01 am
Maybe check how other reports do it, for example I think the CiviVolunteer reports use a custom field or two.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • DAO associated with custom field set

This forum was archived on 2017-11-26.