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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Role and Current Employer Details
Pages: [1]

Author Topic: Role and Current Employer Details  (Read 731 times)

bhupendra

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: joomla
  • MySQL version: 5.5.23
  • PHP version: 5.2.4
Role and Current Employer Details
December 10, 2012, 03:55:40 am
Hello ,

I am new to civicrm, I am facing a prob

1. In participant table role_id is defined but not getting the role in ref table , where this locate. I want role name.
2. which table contain the filed current employer. I want to show this in front end but not getting where this actually stored.

Thanks

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Role and Current Employer Details
December 10, 2012, 06:13:01 am
1: not sure what you mean by "not getting the role in ref table". the role_id in civicrm_participant will reference the value column in civicrm_option_value where option group is the id in _option_group for participant_role. note that role_id may take multiple values, separated by the separator constant. so you can't do a straight join (unless you know with certainty that your records only ever have one value for that field)

2. the current employer ID is civicrm_contact.employer_id. the organization name is cached in civicrm_contact.organization_name
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Role and Current Employer Details

This forum was archived on 2017-11-26.