- 24 May 2011, 19:43
#1258
Hello,
I'm currently setting up OpenCATS 0.9.1 for a company but I've run into a problem. You see, they want to have an online application which I can do but the problem is the extra fields they need. Basically, I will add applicants with a form to SQL PHP script but, I found out, the extra fields are not only stored in a separate database but they don't go by name but by applicant ID which is created after the person is entered. So, I need a way to add custom fields into the default Candidate fields. My PHP sucks but I can read and recreate it fairly well so I tried modifying the Candidates.php file to include a custom field but it didn't work. What can I do to add a custom field to the Candidate area? I've adding the field to the SQL already and here is a cutting of what I added.
* @param string 12 Years English Education.
$yearseducation
$this->_db->makeQueryString($yearseducation),
years_education = %s,
candidate.years_education AS yearseducation,
'12 Years English Education' => array('select' => 'candidate.years_education AS yearseducation',
'sortableColumn' => 'yearseducation',
'pagerWidth' => 50,
'filter' => 'candidate.years_education'),
I'm currently setting up OpenCATS 0.9.1 for a company but I've run into a problem. You see, they want to have an online application which I can do but the problem is the extra fields they need. Basically, I will add applicants with a form to SQL PHP script but, I found out, the extra fields are not only stored in a separate database but they don't go by name but by applicant ID which is created after the person is entered. So, I need a way to add custom fields into the default Candidate fields. My PHP sucks but I can read and recreate it fairly well so I tried modifying the Candidates.php file to include a custom field but it didn't work. What can I do to add a custom field to the Candidate area? I've adding the field to the SQL already and here is a cutting of what I added.
* @param string 12 Years English Education.
$yearseducation
$this->_db->makeQueryString($yearseducation),
years_education = %s,
candidate.years_education AS yearseducation,
'12 Years English Education' => array('select' => 'candidate.years_education AS yearseducation',
'sortableColumn' => 'yearseducation',
'pagerWidth' => 50,
'filter' => 'candidate.years_education'),