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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom Data Group - Multiple records - Sorting ?
Pages: [1]

Author Topic: Custom Data Group - Multiple records - Sorting ?  (Read 1297 times)

Thanuzz

  • Guest
Custom Data Group - Multiple records - Sorting ?
November 01, 2009, 12:21:03 pm
Could someone give me a hint how to set the order of multiple records of a custom data group?
I tried to fix it in the template (CRM/Custom/Form/CustomData.tpl) but don't exactly know how to apply sorting.
It concerns records with also a date field. I'd like to order the records on this date field.

Hope somebody can gives a pointer, Thanks in advance!

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 Data Group - Multiple records - Sorting ?
November 01, 2009, 02:09:43 pm

check:

You will need to do this via a hook

http://svn.civicrm.org/sfschool/trunk/drupal/sfschool/sfschool.module

specifically function sfschool_civicrm_pageRun

the else clause where the customData is rendered. I sort the custom data outside of civicrm in a specific order

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

Thanuzz

  • Guest
Re: Custom Data Group - Multiple records - Sorting ?
November 02, 2009, 11:03:55 am
Thanks, i'll look into it!

schreinereiner

  • Guest
Re: Custom Data Group - Multiple records - Sorting ?
February 03, 2010, 07:56:46 am
I just installed 3.1 and started thinking my way through the data structure needed for our purposes (a multi-partner community initiative).

One issue I quickly ran into is the inability to sort i.e. a multi-record custom group consisting of a date and note field per record. On part of the effort in our initiative is around qualitative research and our team wanted to keep field notes in CiviCRM in a separate tab.

Naturally over time as more notes are entered people want to be able to first of all display the newest notes at the top automatically. Export of the data also is an open question.

Most of my issues are similar to the ones referenced in http://forum.civicrm.org/index.php?topic=6441.0 - Is it expected that any functionality like this will be available in future releases? We do not have a programmer on hand regularly so hooks are currently beyond me.

Any help would be much appreciated. Sebastian

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 Data Group - Multiple records - Sorting ?
February 03, 2010, 08:31:53 am

extending that functionality is not part of 3.2 (which is fairly packed with features/bugfixes already). you might want to consider hiring someone from http://civicrm.org/professional/ to write the necessary code. I suspect you can do the below with hooks and template customization and use the jQuery data table wizard for nice sorting etc

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

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom Data Group - Multiple records - Sorting ?
February 03, 2010, 12:30:41 pm
Would it be worth thinking around the idea of doing the case notes in drupal as a content type and using Views to give you the sorting option etc
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom Data Group - Multiple records - Sorting ?

This forum was archived on 2017-11-26.