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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search Result profile with activity fields, or...?
Pages: [1]

Author Topic: Search Result profile with activity fields, or...?  (Read 931 times)

mtndan

  • Guest
Search Result profile with activity fields, or...?
June 24, 2009, 06:32:54 am
Hi folks,

Our site has a bunch of activities with various custom fields. For example, we have an org type of "property" and an activity called "property visit". This activity has some custom fields like "visit report filed y/n" and "followup letter sent y/n".

I'd like to build a search that shows:

org name, activity status, activity custom field 1, activity custom field 2

I can't figure out how to get at activity fields in a profile. I was able to build a drupal view with this data but I would like to keep the Civicrm functionality (actions menu etc...).

Any ideas?

Thanks in advance.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Search Result profile with activity fields, or...?
June 24, 2009, 11:29:20 am
You can't do this with profiles. But, you can build this functionality using the "custom search" framework. There is an existing custom search on Activities which you could probably adapt pretty easily to your needs - and custom searches automatically "come with" the action menu.

You will need some PHP and SQL skills for this.

http://wiki.civicrm.org/confluence/display/CRMDOC/Custom+Search+Components
Protect your investment in CiviCRM by  becoming a Member!

mtndan

  • Guest
Re: Search Result profile with activity fields, or...?
June 24, 2009, 12:19:22 pm
Thanks Dave, I'll give it a shot.

mtndan

  • Guest
Re: Search Result profile with activity fields, or...?
July 14, 2009, 07:34:24 pm
Dave, would CiviReport be a better option for this?

Quote from: Dave Greenberg on June 24, 2009, 11:29:20 am
You can't do this with profiles. But, you can build this functionality using the "custom search" framework. There is an existing custom search on Activities which you could probably adapt pretty easily to your needs - and custom searches automatically "come with" the action menu.

You will need some PHP and SQL skills for this.

http://wiki.civicrm.org/confluence/display/CRMDOC/Custom+Search+Components

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: Search Result profile with activity fields, or...?
July 14, 2009, 08:29:17 pm

if you want the actions menu and other search options, custom search will be a better match than civireport

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search Result profile with activity fields, or...?

This forum was archived on 2017-11-26.