My Oracle Support Banner

Form Personalization to Make Leave Reason in End Employment Form PERWSTEM) Required is Not Working (Doc ID 2097904.1)

Last updated on AUGUST 12, 2022

Applies to:

Oracle Human Resources - Version 12.2.4 and later
Information in this document applies to any platform.

Symptoms

On  : 12.2.4 version, Terminations

ACTUAL BEHAVIOR
-----------------------
Even after setting the Leave Reason as mandatory on the PERWSTEM (termination) form, the field shows as mandatory, but does not prevent users from saving if the field is left blank.

EXPECTED BEHAVIOR
-------------------------
Expect an error to occur if a mandatory field is left null.


STEPS
--------

The issue can be reproduced at will with the following steps:


1. Login using "HRMS Manager" responsibility

2. Navigate to People > Enter and Maintain > query in an employee > Others > End Employment

3. Go to Help > Diagnostics > Custom Code > Personalize

4. Create a new customize function on PERWSTEM form:

 

Seq Description Level Enabled
10 Make Leave Reason Mandatory Function X


Conditions 

Trigger Event WHEN-NEW-FORM-INSTANCE
Trigger Object PERIOD_OF_SERVICE
Processing Mode Not in Enter-Query Mode

 

Actions 

Seq 10
Type Property
Description Make Leave Reason Mandatory
Language All
   
Object Type Item
Target Object PERIOD_OF_SERVICE.D_LEAVING_REASON
Property Name REQUIRED
Value TRUE

 

5. Close the Customization form > close the PERWSTEM form

6. Reopen the End Employment form

7. See the Leaving Reason field is 'Yellow' or 'Required'

8. Enter all termination fields except Leave Reason and the form saves without error.

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.