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 CiviCase (Moderator: Dave Greenberg) »
  • Expose Custom Fields to Drupal View
Pages: [1]

Author Topic: Expose Custom Fields to Drupal View  (Read 878 times)

phillipclarke29

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: 5.6
  • PHP version: 5.4.11
Expose Custom Fields to Drupal View
November 14, 2013, 03:31:58 am
I am trying to create a view in drupal with custom fields from civi.  Although there is the option to select the field I get a "base table or view not found" error.  I am thinking that I need to expose this data to drupal - any ideas?

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: Expose Custom Fields to Drupal View
November 14, 2013, 08:55:38 am

what drupal version? d7 or d6?

might want to try clearing the views cache and see if that helps

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

phillipclarke29

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: 5.6
  • PHP version: 5.4.11
Re: Expose Custom Fields to Drupal View
November 14, 2013, 09:21:51 am
D7 civi 4.4.0 I have cleared cache's with no joy.  I have just added a civicustom field to drupal view and get sqlstate[42502] Base Table or view not found 1146 table 'bitnami_drupal7.civiccrm_value_treatment_status_2' doesn't exist :(

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: Expose Custom Fields to Drupal View
November 14, 2013, 09:24:24 am

did you adjust your drupal's settings.php to include the new civicrm custom tables

also it seems like this table: civiccrm_value_treatment_status_2 is not a valid custom value table (unless u've done some code modifications). civi's custom tables have the prefix civicrm_value_ ...

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

phillipclarke29

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: 5.6
  • PHP version: 5.4.11
Re: Expose Custom Fields to Drupal View
November 14, 2013, 09:29:35 am
I will check settings php

phillipclarke29

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: 5.6
  • PHP version: 5.4.11
Re: Expose Custom Fields to Drupal View
November 14, 2013, 09:38:03 am
doh! settings php! Thks Lobo

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Expose Custom Fields to Drupal View

This forum was archived on 2017-11-26.