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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Help with Custom Search Listings
Pages: [1]

Author Topic: Help with Custom Search Listings  (Read 1184 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Help with Custom Search Listings
December 07, 2007, 06:23:08 am
My organization needs a specific report for search listings where the result columns will include:

Organization Name
Primary Contact at Org
Most recent activity

The first one, organization name, is obviously built in. For the Primary Contact I just created a custom field for organizations. Then I created my profile for search results that will display columns of both of those. The issue is with most recent activity. Activities are not built in to profiles. Is there any way I can get the latest activity to show up in this profile? If not through the interface, then is there there a way I can add some code to make this happen? Of course, my skills are limited so I would appreciate any insight/suggestions/examples you could give!

Thanks,
Emily

MichaƂ Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Help with Custom Search Listings
December 07, 2007, 01:20:05 pm
Hey Emily,

Sorry to say so, but I don't think you can reach activities through profile listings at this stage.

If your requirements weren't strictly tied to profiles, I would recommend either using SQL statement (although it will get complicated for custom field value) or using BIRT/CiviReport (which will be a bit complicated to get into speed with initially). So to summarise, there is no easy way to do this right now.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: Help with Custom Search Listings
December 08, 2007, 11:22:25 am
If you are using drupal a module would not be that hard to make?
I could be used for this type of report?

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Help with Custom Search Listings
December 10, 2007, 07:28:19 am
Alfred,

I am using Drupal (right now 4.7)....what do you suggest I could use? I do have CiviNode installed, but as far as I know it doesn't support this right now.

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: Help with Custom Search Listings
December 10, 2007, 07:36:09 am
If you make the module and just query those tables and display that data using drupal table you would get a quick view of that data.
This takes a bit of learning.
1. what civi tables
2. making a drupal module
3. and the right queries with drupal

I really could not pull it off this week.  But  I can put it down for early next week.
If you want to have a go at it the Pro Drupal Development book would be key.
And in the long run you will be more able to do alot of other neat integrations.
Al
ps..send me an email alfred@nationalpriorities.org if you do not hear from me next week, but  I will put it in my calendar since this is a report I would like for our office as well.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Help with Custom Search Listings

This forum was archived on 2017-11-26.