We are in the process of implementing Oracle Performance Management(R12.1.3), and we need to restrict the sumation of all the Competency/Objective (Weight) should not exceed 100% .
(EX: Competency1+ Competency2 + Competency3 = should be equal or less than 100%).
(EX: Objective1+ Objective2 + Objective3 = should be equal or less than 100%).
How to achieve this?
The only thing i can think of is extension , i think these are self service pages , i am not sure whether u can achieve this by using self service
personalization or not , please confirm with any OAF expert about this , hope this helps
You can acheive this by use of user hooks. Refer to userhooks on package: hr_competence_element_api. This API would be called when user enteres the ratings/weightage for competencies/objectives and hit apply button or save for later.
We had the same requirement at our client implementation and we have achieved this by doing a controller extension. On all the evenets like Transfer, Finish etc we have added this validation by extending the controller.
Unfortunately I cannot share the code but if you have a technical OAF developer then he can help you in achieving this.
i handled the issue using user hook, but i cannot view the error or stop the process using this:
Edited by: user8013866 on Feb 2, 2013 5:15 AM
Are you sure you code is being called when you save the ratings. You can verify using debug statements in your code. Also try using hr_utility.set_message(800, 'ADD_CONTACTS_MESG');
hr_utility.raise_error; instread of FND functions.