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) »
  • Views integration: Contact updated date
Pages: [1]

Author Topic: Views integration: Contact updated date  (Read 621 times)

John.K

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 5
  • CiviCRM version: 4.x
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5
Views integration: Contact updated date
January 20, 2014, 03:45:09 am
I'm trying to use Views to output a list of users along with their address, and the date that their address was last updated. However I can find no mention of 'updated date' or similar in the contact/address information? And I cannot find a way to output CiviCRM logging information in the Views integration?

I would need this information to compare users against another system, to make sure only the most recently updated date is used.

I expect there is another way to achieve this, such as by using a detailed logging report from Reports?

I've done some searching but couldn't find this issue elsewhere.

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: Views integration: Contact updated date
January 20, 2014, 10:01:13 am

You should be able to patch the views integration code to add the created/updated date fields (they are now in the contact table itself). Please do contribute your code back when u have done so (via an issue and a PR on github)

the views integration code is under drupal/modules/views

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

John.K

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 5
  • CiviCRM version: 4.x
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5
Re: Views integration: Contact updated date
January 28, 2014, 03:10:09 am
OK, I've implemented the modified_date field in Views and there is a pull request here: https://github.com/civicrm/civicrm-drupal/pull/113

I hope this is useful.

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: Views integration: Contact updated date
January 28, 2014, 06:40:49 am

hey jeremy:

two things:

a. Can you please file an issue for this

b. Can you please redo the PR against 7.x-4.4 if possible. Makes it a lot easier for us to merge

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

John.K

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 5
  • CiviCRM version: 4.x
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5
Re: Views integration: Contact updated date
January 28, 2014, 08:24:06 am
Done. Took a while to get it right, I'm still not terribly used to GitHub! (Shame on me)

Issue: http://issues.civicrm.org/jira/browse/CRM-14142#comment-56706

PR: https://github.com/civicrm/civicrm-drupal/pull/114

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Views integration: Contact updated date

This forum was archived on 2017-11-26.