Special Value Set in Oracle Apps
Special Value Set in Oracle Apps
The first parameter Current Month should allow only MON-YYYY format.Schedule Start
Date and Schedule End Dateshould be with in first parameter month.
Approach 1
If the report is through PL/SQL StoredPROCEDURE
backend.
Approach 2
Second approach is through SPECIAL Value Sets.This value set has events
like Edit,Load and Validate.We can attach PL/SQL code snippet to each event.Here I am going to attach
validation routine to Validate event to validate the user input.Validate event fires when the focus leaves from
the item.
Here I am going to create twoSPECIAL
third parameter).
value sets ( one for first parameter and another for the second and
Value Set 1
Name : XXCUST_CURRENT_MONTH
List Type : List of Values
Format Type : Char
Maximum Size : 8
Validation Type :SPECIAL
Event : Validate
Function : XXCUST_CURRENT_MONTH_VALIDATE_ROUTINE
Value Set 2
Name : XXCUST_DATES
List Type : List of Values
Format Type : Standard Date
Validation Type : Special
Event : Validate
Function : XXCUST_DATES_VALIDATE_ROUTINE
Note: Inside the validate routine I am using FND messages.Generate message file also using "FNDMDGEN
apps/password 0 Y US XXCUST DB_TO_RUNTIME".
1.
Create/Update message
2.
Run the command on middle tier: FNDMDGEN apps/<passwd> 0 Y
<LANGUAGE> SCHED DB_TO_RUNTIME
3.
Exit from the Oracle application andLOGIN back.