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 (Moderator: Dave Greenberg) »
  • Custom fields emulating table?
Pages: [1]

Author Topic: Custom fields emulating table?  (Read 1497 times)

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Custom fields emulating table?
August 12, 2009, 03:21:06 pm
Hi,

Currently, we keep track of our members' volunteer hours on paper, in a table (see attached photo). This is necessary because there is a date, description, and category with each entry, and there may be as many as 20 entries in a year.

Is it possible to do something like this in CiviCRM and Joomla using custom fields and a profile? To members in the front end of Joomla, it would look something like a table you might see in a word document.  I'm not very knowledgeable about databases, so I don't know how to describe it better than this. I see there would be a one to many relationship going on here. There would be 3 fields associated with each record (date, description, category), and as many as 20 records, all associated with 1 member. Then I would need to do this for every year.

A simple alternative would be for me to create a whole bunch of fields, like: Date1, Description1, Category1, Date2, Description2, Category2, .....Date20, Description20, Category20, but that doesn't really work, especially since I need to do it every year.

Hope this makes sense to someone.

Thanks for any ideas you may have,
Phil

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Custom fields emulating table?
August 12, 2009, 03:36:15 pm
CiviCRM supports multiple custom data records per contact. I haven't used it personally, but I can show you how to get there. Have a play and see if it does what you want. The following instructions are for v2.2.0 and may vary in other versions.
  • go to CiviCRM > Administer CiviCRM > Custom Data
  • press New Group of Custom Fields
  • tick the box labelled Does this Custom Data Group allow multiple records?
  • you can also set the maximum number of records allowed per contact
I hope this helps!

Ken

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Custom fields emulating table?
August 12, 2009, 05:00:12 pm
Hi Ken,

Thank you so much for the help. That's exactly what I'm looking for. The only problem I'm having is that these fields don't seem to be available to add to a profile in Joomla. I need this functionality in the front end so that members can fill in their own info.

Is this because I have them set to allow multiple records?

Phil


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: Custom fields emulating table?
August 12, 2009, 06:54:21 pm

yes, profiles do not handle custom groups with multiple records (as yet).

Your other option will be to implement civicrm hooks and write custom code to manipulate this data. You will need a fair amount of expertise with php/mysql

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

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Custom fields emulating table?
August 12, 2009, 07:03:29 pm
Thank you. I think I'll wait until this is implemented as a core functionality.

Phil

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: Custom fields emulating table?
August 12, 2009, 07:08:44 pm

it might be a long wait :)

there are currently no plans to implement this in the next release or two (unless we get someone willing to sponsor it)

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 (Moderator: Dave Greenberg) »
  • Custom fields emulating table?

This forum was archived on 2017-11-26.