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 CiviEvent (Moderator: Yashodha Chaku) »
  • Custom Fields in CiviEvents/Views2 in Drupal 6
Pages: [1]

Author Topic: Custom Fields in CiviEvents/Views2 in Drupal 6  (Read 2014 times)

cbh

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71-log
  • PHP version: 5.5.3
Custom Fields in CiviEvents/Views2 in Drupal 6
May 18, 2009, 11:23:22 am
Hi there.

I've created a series of workshops within CiviEvents and am able to group and display them in Drupal using the views module - most current versions of Drupal and Civicrm with the date patch applied. Works like a charm when sorting by title or date!

I also need to group them by stream - that is a series of 5 workshops that are grouped so that participants can go through them all together. I thought creating a custom field for the stream code would do this, but while I can access the field in the Drupal view for the sort, I get the following message when I try to preview the view:

user warning: Table 'xxxx1_drupal.civicrm_value_course_code_3' doesn't exist query: SELECT civicrm_event.id AS id, civicrm_event.start_date AS civicrm_event_start_date, civicrm_value_course_code_3.course_code_6 AS civicrm_value_course_code_3_course_code_6 FROM xxxxx_civicrm.civicrm_event civicrm_event LEFT JOIN civicrm_value_course_code_3 civicrm_value_course_code_3 ON civicrm_event.id = civicrm_value_course_code_3.entity_id LIMIT 0, 10 in /hsphere/local/home/xxxxxx/xxxxx.ideaworldhq.com/modules/views/includes/view.inc on line 731.

Not being a programmer, Im lost here - any suggestions would be appreciated. The only alternative I see is to integrate the code into the course title and do the sort based on that.

Thanks
Chris Hutcheson

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 in CiviEvents/Views2 in Drupal 6
May 18, 2009, 01:02:02 pm

check:

http://wiki.civicrm.org/confluence/display/CRMDOC/Views2+Integration+Module

specifically step 2. seems like u added a new custom group (value course code?) but did not update the drupal settings file

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

cbh

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71-log
  • PHP version: 5.5.3
Re: Custom Fields in CiviEvents/Views2 in Drupal 6
May 18, 2009, 01:36:56 pm
You are a god among men - thanks very much, that solved the problem.

Cheers
Chris Hutcheson

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Custom Fields in CiviEvents/Views2 in Drupal 6

This forum was archived on 2017-11-26.