Oracle iRecruitment enables us to set up a flexfield to capture additional vacancy (and candidate) information that can then be used by managers searching for a job/vacancy (or candidate and by candidates searching for a job).
Basic Requirement
The Basic requirement is explained below
The end user(recruiter/manager) should able to search a job based on the subsidiary company. Business will provide us the different subsidiary logo that should be available in the page and when clicks on that logo , the subsidiary field(available under vacancy search) must be populated with the value. When recruiter/Manager clicks on go it should show only the vacancy for that subsidiary.
The requirement is explained below with a prototype.
Pre-Requisite
Following are the pre-requisites for our solution approach
1) iRecruitment is setup is complete and functioning as intended.
2) Additional Search Criteria Descriptive flex field is setup properly and necessary segments are displayed in page(with the help of necessary personalization)
3) While vacancies are created/updated the Subsidiary field is populated with the desired value
4) The custom valueset,attached with the subsidiary field in Additional search criteria, contains the valid subsidiary list of values.
Solution Approach
1A) open the vacancy search page( iRecruitment Recruiter >> Vacancy).Now go to the navigator View >> See the source code.
identify the id of the "GO" button available in the page.
1) First put all the logo files in OA_MEDIA folder(files can be kept in other locations).
2) create a simple HTML file that will determine how we want to display the logo in the page.
3) Put the HTML file under OA_MEDIA folder.
4) Now we need to personalize our vacancy search page to incorporate the logos in the page.
a) Click on personalize page >> Select Complete view >> Click on hyper link Expand All
b) Click in Create item
create an item with type "Raw Text". Put the following value under Text column keeping other field value to its default value
<table></td></tr></table><br><br><iframe src="/OA_MEDIA/XX_BRAND_FRAME.html" scrolling="no" align="left" border="0" frameborder="0" width="100%"></iframe><br><br>
c) Now click on create item logo once again. and create a "RAW Text" type item that will contain the definition of the javascript that we mentioned in our HTML file.Put the following value under Text column keeping other field value to its default value
<SCRIPT Language='JavaScript'>
function populateIRCBrand(BrandLogo)
{document.getElementById('SearchCriteriaFlex4').value=BrandLogo.toString();
}
</SCRIPT>
d) Now re-order the recently created raw text
Now our application is ready to test.
References
1) Thanks to my Colleague Sourav Banerjee who had explore this possibility.
Disclaimer:- This is a knowledge sharing site. This topic talks about a custom solution. Oracle may not provide you a support for any data corruption or any other problem in your custom code/problem arises because of the custom code. The author is not responsible for any kind of system/data problem appears because of usages of this code.Reader/implementer must do it on his/her own risk/responsibility.