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 CiviReport (Moderator: Dave Greenberg) »
  • Adding contact detail to Relationship Report
Pages: [1]

Author Topic: Adding contact detail to Relationship Report  (Read 2766 times)

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Adding contact detail to Relationship Report
August 30, 2013, 04:37:34 pm
I'm trying to add the details for Contact B (address, phone number, etc.) in the Contact Relationship Report.  It seems like it should be an easy thing to do but I can't seem to sort it out.

I've checked this: http://forum.civicrm.org/index.php/topic,24263.msg101939.html#msg101939 and tried to insert the code but the post is about a year old and, for whatever reason, it's not working.

I also checked out the Extended Relationship Report from the Extended Report extension.  It has everything I need but is, for some reason, based on Case and Case ID.  I'm not using CiviCase and wasn't able to extract the Case information for my custom report.

Can anyone point me in the right direction?

Thanks!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Adding contact detail to Relationship Report
September 01, 2013, 02:11:59 pm
Quote
for some reason, based on Case and Case ID.  I'm not using CiviCase and wasn't able to extract the Case information for my custom report.


Case fields should be optional on the relationship report in the extended report -are they causing errors
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

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Re: Adding contact detail to Relationship Report
September 02, 2013, 04:59:29 am
Eileen -

When I attempt to use the Extended Relationship Report, I get a syntax error on run.  My opinion is that it is looking for case ID but since we don't have CiviCase enabled, it is not even finding the table and thus throwing the syntax error.  I haven't looked deeper because, since Case ID is selected by default in the report criteria, I assumed it was a case based report linking relationships to contacts related to a case. 

The criteria selection screen is attached.

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Re: Adding contact detail to Relationship Report
September 02, 2013, 05:46:20 am
Eileen -

After my last post and your comments, I started playing around a bit more and clearly my assumptions were incorrect.  If I run the report with the default criteria, I see the exact same results as the built in Relationship Report (the same contacts and relationships are displayed).  My next step had been to add group criteria because that's what I'm interested in.  Adding group led to: "DB Error: syntax error" so I backed up and used contact contains criteria and was able to narrow it down to the contacts I'm looking for.  That worked.  Then, I started to try to add the details for the contacts that I need.  The first thing I added was Contact B Email which resulted in "DB Error: no such field"

Admittedly, I may simply be doing something wrong.  I was very excited to see the extended reports extension but, after I couldn't get what I needed, I sort of abandoned it and haven't played with it much.  I'll keep testing but if you have any ideas I'd love to hear them.  This is EXACTLY what I need as we have chapter organizations within our org and each has a relationship to its leadership contacts.  It would be great to easily spit out a report listing all our leadership statewide.  Originally I was going to try to use groups for this but it seemed like a duplication of the relationship functionality and I'd have to create somewhere around 250 groups to manage it all.  Yuck!  Thanks for the extension and for your help!

Damon

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Adding contact detail to Relationship Report
September 02, 2013, 07:40:46 pm
I pushed a few fixes onto that report so if you want to grab the latest version....
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

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Re: Adding contact detail to Relationship Report
September 04, 2013, 09:59:01 am
Eileen -

What is the best way to get the updates?  Can I just uninstall and reinstall the extension?  Thanks again for working on this.  I'm really excited about it.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Adding contact detail to Relationship Report
September 04, 2013, 03:11:42 pm
Yes, uninstalling & re-installing should work - as long as the files are removed inbetween (which I think may not happen automatically in later versions of civi)

Alternatively you can get the code from git -

git clone https://github.com/eileenmcnaughton/nz.co.fuzion.extendedreport.git

Or download it as a zip & replace the files

https://github.com/eileenmcnaughton/nz.co.fuzion.extendedreport/archive/master.zip
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

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Re: Adding contact detail to Relationship Report
September 05, 2013, 08:37:26 am
Thanks, Eileen.  Had a chance to install and test this morning.

I seem to have narrowed down the problem to the email field.  If I include Contact A or Contact B email in the display columns, I get the error: DB Error: no such field.

Not sure if it helps but I narrowed down my contact criteria to just one or two so I could look at each record.  The email field for each contact was set to home.  I tried changing the email to "Main" just in case and that didn't change anything. 

Then I tried the same thing with the new updates on a generic install with Joomla 2.5 Civi 4.3 using only default relationship types.  Got the same error messages.

Any thoughts?

Thanks again for the extension and your help!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Adding contact detail to Relationship Report
September 05, 2013, 02:20:02 pm
Hmm - did you use uninstall & re-install - Maybe I need to increment the version
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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Adding contact detail to Relationship Report
September 05, 2013, 02:31:07 pm
OK - I've incremented the version to 1.4 - you should see that on your manage extensions screen
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

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Re: Adding contact detail to Relationship Report
September 05, 2013, 08:57:43 pm
Sorry it has taken me so long to get back to you.  I'm actually at CiviCamp in Washington, DC right now and it has been a full day!

I tried the new files you sent and replaced all the files in the extension with the new files.  I completely blew away all the files from the old version and replaced them with the contents of the zip.  No luck.

However, since you incremented the version, Civi saw the upgrade available.  I did the upgrade and now everything seems to be working perfectly!  I haven't had a chance to play with it to make sure I have all the fields I need but email works, addresses work, and everything else seems ok at first glance!  I'll keep playing with it to make sure but so far, it is perfect.

Just for the record, I want to be clear about what this does for us.  Being able to output the relationships with the additional data is HUGE.  I have one person in my office who maintains a contact spreadsheet.  She takes data from three different sources (sometimes more) and compiles it into a spreadsheet.  This data changes weekly.  She maintains the spreadsheet, updates it and then emails it to everyone in our org periodically.  Now, with your extension, everyone can pull the info they need, when they need it and she only has to update the records that have changed.  You've saved us at least two to three hours of labor each week.  Not much on the surface, but over the course of a year, we're talking nearly 200 hours of labor minimum!  That's almost $4,000 that will go to our cause instead of to updating spreadsheets!  THANKS!

--Damon

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Adding contact detail to Relationship Report
September 05, 2013, 09:18:50 pm
Lets hope it's a good cause then :-)
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Adding contact detail to Relationship Report

This forum was archived on 2017-11-26.