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) »
  • Searchable list of classes- data input, how searches output
Pages: [1]

Author Topic: Searchable list of classes- data input, how searches output  (Read 637 times)

Dallas36

  • Guest
Searchable list of classes- data input, how searches output
July 05, 2009, 10:06:09 pm
I’m looking for a way to have a searchable list of classes. I need help with either changing the way that teachers fill out the Class Profile, or changing the way that searches happen.  I might me going about this all the wrong way and I welcome guidance.

Let’s say that Contact Sally teaches 5 classes.  I have set up a profile where Sally fills in all the relevant class info for Class A, Class B, and Class C Class D and Class E- the info for each class includes class title, class type, day of the week, time, start date -end date, class description, class location, and cost for the class.  Contact Sally fills out the info for all 5 of her classes.  The fields are labeled Class_title_1, Class_title_2, Class_day_1, class_day_2, Class_description_1, etc.

Q1:  Now Jane Public wants to take a class.  Jane Public has a busy schedule and can only take a class on Tuesdays.  How do I create a search field that Jane Public sees as “Day of the week” but the search actually searches Sally’s Class_day_1, Class_day_2, Class_day_3, Class_day_4, and Class_day_5?

Q2: The output of the search is cumbersome and awkward with the output of the forms necessitating scrolling to the right forever- with all of the necessary class info.  I want to create columns that are narrower, and where the text wraps.  How do I change the way that searches output- how the fields look rather than which fields are displayed? 

Q3: If I want the list of classes to output to a pdf instead of the cumbersome list of fields, how do I do that?


And as a little background- we can NOT use a calendar feature to list the classes as they will be input/ managed by all of the individual teachers and not all of the teachers are web savvy.


Thanks!

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: Searchable list of classes- data input, how searches output
July 06, 2009, 06:38:45 am

I dont think civicrm has a good way of collecting multiple records for the same custom group via profile. A large part of what you need to do the below effectively would be custom code. You can potentially store all the class data using a custom group (class name, title, description, day, time etc)

You'll need to write custom code to collect data from the teachers and a custom search to search the classes the way you want. Also a custom task to print it as a pdf

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

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Searchable list of classes- data input, how searches output
July 06, 2009, 09:54:30 am
Hi,

Not convinced either of storing as custom fields of the contacts. What about creating a type of activity "class" and having 5 activities to sally for the 5 classes ?

You have examples of custom searches on activities, shouldn't be complicated to create a special custom search to get the list of "activities/classes"

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Searchable list of classes- data input, how searches output

This forum was archived on 2017-11-26.