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 Drupal Modules (Moderator: Donald Lobo) »
  • Custom data broken in Views
Pages: [1] 2 3

Author Topic: Custom data broken in Views  (Read 5940 times)

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Custom data broken in Views
April 05, 2010, 10:39:43 pm
It would appear that Views2 cannot access custom data at the moment.

setup:
Drupal 6.16
Civi 3.1.1
Views 6.x-2.8

Having followed the instructions here:http://wiki.civicrm.org/confluence/display/CRMDOC/Views2+Integration+Module, here: http://redspire.net/content/civicrm-views-2-integration-remote-civicrm-database, and here: http://redspire.net/content/problems-and-solutions-problems-views-2-civicrm-and-drupal-6 I still couldn't get any custom data to appear when setting up a view - note I do not mean "it didn't appear after adding it to the view", I mean "there's no way to add it to the view - it doesn't appear in the edit view interface".

Note that I was using custom activity data.

Since then, I've done some searching and it seems to be a common theme across data types:

For Events, and a response suggesting that this is a known issue: http://forum.civicrm.org/index.php/topic,12132.0.html
For Events and Participants http://forum.civicrm.org/index.php/topic,11873.0.html

I have also tried the patch listed here http://forum.civicrm.org/index.php/topic,12000.0.html without success.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Custom data broken in Views
April 05, 2010, 11:09:01 pm
Hi,

Are the custom data tables specifically added to settings.php?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Custom data broken in Views
April 06, 2010, 03:53:50 am
Yep.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Custom data broken in Views
April 06, 2010, 04:05:45 am
hmm - we have custom fields & views working on a bunch of sites & a range of versions (not 3.1.1 but 3.1.2 & 3.1.3 & some 3.0.x & 2.2.x version) & haven't done anything too tricky apart from getting settings.php right & emptying the views cache.

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Custom data broken in Views
April 06, 2010, 04:12:34 am
Ok, I'll try upgrading to civicrm 3.1.3 (something I didn't want to do unless I really really had to due to potential to break things).

It was because of the number of similar problems I'd seen that I presumed it was a problem. Also because I've done *everything* as per instructions, and yet am still getting no joy.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Custom data broken in Views
April 06, 2010, 04:17:15 am
Actually - let me take that back - we've definitely used custom participant fields but not sure about activity
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Custom data broken in Views
April 12, 2010, 04:21:23 pm
ok, I'm about to check up after the upgrade - if it doesn't work, I guess I'll lodge a ticket?

cheers

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Custom data broken in Views
April 12, 2010, 04:31:58 pm
I think the views integration is basically community supported. But I don't think it would be that hard to make sense of the missing piece. There are a few people who have worked on it - I can try to find their details
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Custom data broken in Views
April 12, 2010, 04:39:54 pm
cheers - I notice there has been a couple of Views2 upgrades over the last week as well - hopefully it will all be ok by this afternoon :)

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Custom data broken in Views
April 12, 2010, 05:09:08 pm
ok the update on both views (2.8->2.10) and civicrm (3.1.1->3.1.3) didn't work...I've cleared the views cache and all. I will try adding a new view, then some new custom fields, and try again.

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Custom data broken in Views
April 12, 2010, 05:46:34 pm
More tests complete!

I added some custom data fields for "contacts", added the new table to settings.php, cleared views cache, started a new view, and lo, the custom fields were available in views. (Therefore: I am doing it right)

I then added a new custom data set for activities, made it available for phone call types, and followed through. Nothing.

I changed the above to be available for the value "any" and suddenly it was there (Therefore: it's not broadly a CiviCRM-Activities problem)

I went to my original custom data - because this is set to be an activity subbtype that we had created. Can't change it to Any type without getting and error.

Instead, I selected (ctrl-select) all types (basically the basics + my new subtype) and saved etc etc - still no joy.

It would seem that when creating a new Custom Data Group, if you select Activity as it's type in the Used For* field, and choose anything except --Any--, it wont appear in Views2.

I think that's as good a bug report as I can do - hopefully we can work something out from here given this knowledge?

cheers

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Custom data broken in Views
April 12, 2010, 05:54:08 pm
the views code is in civicrm/drupal/modules/views/civicrm & there are a bunch of handler files - probably what's in the others for custom fields isn't in the activities ones
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Custom data broken in Views
April 12, 2010, 06:19:17 pm
tx Eileen - I took a quick look around, but there doesn't seem to be a pair of files to compare - contacts for instance only have one base file civicrm_handler_field_contact_link.inc to activity's 4, none of which are a _link.inc (but there are two type.incs)

And then in the civicrm_handler_field_link*.inc nameset there are one of each, but they don't seem to be where the prolem lies. I will have to come back to this at a time when I'm not limited to putty/cygwin and their vagaries...and I've done some more php readin'

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Custom data broken in Views
April 12, 2010, 06:26:28 pm
Hi, I let Michael know you were looking for help on this so hopefully he'll be able to give some more direction as he knows this code quite well
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: Custom data broken in Views
April 12, 2010, 06:27:31 pm
ok, this file: civicrm_handler_filter_activityType.inc references State/Province:

39     function title( ) {
40         return t('State/Province');
41     }

which seems weird to me? I don't even know if this is where the problem is - I was just reading the source.

Pages: [1] 2 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Custom data broken in Views

This forum was archived on 2017-11-26.