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) »
  • Issues creating view
Pages: [1]

Author Topic: Issues creating view  (Read 1387 times)

felixmartel

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.31
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Issues creating view
February 02, 2012, 07:49:40 am
Hello,

I'm trying to create a Drupal view to display members having signed up or renewed in a specific time period. I need to display the date the activity occurred, the contact name and address info, as well as a custom field.

There either seems to be an issue with CiviCRM Views, or I'm doing something wrong. Example:

  • I create a view of type CiviCRM Activities
  • add CiviCRM Activities : Activity Type (activities are visible in the preview pane)
  • add filter  CiviCRM Activities : Activity Type is one of Membership Signup or Membership Renewal (preview results are correctly filtered)

So far so good, however, as soon as I add a field from any group other than CiviCRM Activities, my results become empty (no error).

I went through the same exercise using a Contributions view, and as soon as I add a field from a group other than CiviCRM Contributions, my results go blank and I get no errors.

I've searched through the forums and issue queues and haven't found any reference to this behaviour.

Help !

felixmartel

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.31
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Re: Issues creating view
February 04, 2012, 09:39:31 pm
20 views and no one has even a hint at an answer ??? Am I asking a really stupid question ? Are all of the forum gods stumped ?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Issues creating view
February 05, 2012, 03:08:54 am
Hi. Please note that Views Integration is not part of core CiviCRM AFAIK. It was contributed by one individual and he is not always available to handle every support request.

That said, I am not certain what the issue is but it could well be that you have found a bug with the table relationship code for CiviCRM Views Integration. I don't have a fix for that, but I can suggest an alternative solution. You could use PHP (or even JS) code to fetch the data you need, based on the activity id, using the CiviCRM API. You could do this by customizing your view's templates.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

felixmartel

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.31
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Re: Issues creating view
February 05, 2012, 07:05:08 am
Thanks for the info Hershel. I apologize for my rant. It was late and I was a little tired... :-\

I did a little more digging, and it seems to be custom fields that are breaking the views. I had a quick look at the views integration module, and with my limited understanding of php, I think the issue is that each and every available civi field is explicitly defined in the module. That would explain why custom fields are breaking the view.

Now I just need to figure out how to add my custom field somehow... I think... ::)

ZenLax

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • Not an engineer, but I play one on TV.
  • CiviCRM version: 4.8
  • CMS version: Drupal 6.x/7.x
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Issues creating view
March 01, 2012, 08:50:44 pm
Consider trying an end run by installing the Views Custom Field module and writing your own query.

http://drupal.org/project/views_customfield

felixmartel

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.31
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Re: Issues creating view
March 02, 2012, 05:58:20 am
I'll have a look at that, thanks!  :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Issues creating view

This forum was archived on 2017-11-26.