Oracle HRMS FORMS Personalization
Oracle HRMS FORMS Personalization
Oracle HRMS FORMS Personalization
Oracle Applications
Release 11.5.10
1.
2.
3.
4.
Understand Sequencing.
5.
6.
7.
8.
9.
Changing properties
Executing built-ins
Displaying messages
Adding menu entries.
. Form Personalization is independent to each form. This means the personalization done
on one form will not reflect on other form.
. The form mainly contains four sections. They are
Rules, Conditions
Context
Actions
The Need
Most of the customers wish to modify the way the forms look and behave. They want to
change the labels on the form fields, hide fields, hide buttons, amend custom logic etc.
The motives could be
Managing un-necessary fields.
To match the customer specific business requirements.
To match the language (lingo) used by the customer.
Version 1.0
Warning
Form Personalizations allows you to fundamentally alter the
behavioroftheproductthatOracleships,andaccessANYandALL
data.Therefore,thisfeatureshouldonlybemadeavailabletotrusted
users.
2.
Important:
By default the Personalize menu is visible to all the users; this can be
controlled with help of profile options. By setting up the below profile
options, the access to the Personalize menu can be limited for the authorized
users. This will prevent unauthorized users from changing the look and
behavior of the forms.
The profile options are Utilities: Diagnostics = Yes/No
Hide Diagnostics
= Yes/No
Version 1.0
WARNING
1.
Version 1.0
Rules
1.
2.
3.
4.
5.
Rulesadministerthepersonalizationneedstobeimplementedontheform.
Eachrulecontainsasequencenumberandthedescription.
TherulecanbeactivatedordeactivatedusingtheEnabledcheckbox.
Therulecanbedeletedwhennolongerneeded.
Defining rules doesnt identify when the rule should get evaluated or
applied. For each rule, there should be conditions attached which power
theexecutionoftherule.
Forexample:
1.ARulecanbeChangetheOrderNumberprompttoClaimNumber.
2.HideCustomerfield.
Version 1.0
Condition
TriggerObject
TriggerEvent
Condition
ProcessingMode
Validate
Version 1.0
Condition
Condition decide the event the rule to be executed.
Each condition mainly contains three sections. They are
Trigger Event: Trigger Event specifies the occurrence where
the rule should be executed.
Trigger Object: Trigger Object is the object on the form to
determine at what level the rule should be executed.
The values can be <Form Name>, <Block Name> or <Item Name>
Version 1.0
Version 1.0
Version 1.0
10
Version 1.0
1.
2.
Run the form of interest and a dialog will appear each time an event is sent
3.
Turn this mode off by selecting Help > Diagnostics > CustomCode > Normal
11
Version 1.0
12
Condition: Condition
I. Condition :
1. The Condition field lets you create an expression in SQL.
DECODE( )
Examples:
1. :users.user_name is not null and :users.description is null
TRUE if the User Name has a value & the Description doesnt have
value
2. sysdate >= to_date(1-1-2005, DD-MM-RRRR)
TRUE if todays date is equal to or greater than January 1, 2005.
Version 1.0
13
3. Both: The Rule will be executed in both the Enter & Execute query modes.
III. Validate :
1. When you press the Validate button, the Condition will process immediately
and return either True, False, or an Error.
2. Errors are in standard ORACLE error format, with an ORA error number.
Version 1.0
14
Context
Version 1.0
15
Context
Context manages to whom the personalization should apply.
This is similar to the concept of using profile options in Oracle
Applications with a slight difference. We will see this in next
slide.
The various levels are Site, Responsibility, Industry and User.
During runtime, the values provided in the context are evaluated
and personalization rules will be applied.
Usage of context is very vital in implementing the
personalization to prevent the inappropriate users accessing
these personalization of the form.
Example : Context = Responsibility
Value = Customer Support
16
Version 1.0
1.
2.
3.
4.
If 2 rules have the same Trigger Event, and Actions that change the
same property, the rule with the higher sequence number will be
performed last, thus it will WIN.
17
Actions
Version 1.0
18
Actions
Actions decide the exact operation to be performed when the conditions
and context return TRUE during the runtime.
Usually each rule should be associated with at least one action.
The types of actions available are
Property
Message
Builtin
Special
Each Action contains a Sequence number, Description and
Language.
Based on the action type selected, the fields on the right sector of
the actions tab will be refreshed where the action parameters are
entered.
Actions can be enabled, disabled or deleted.
Version 1.0
19
Actions: Sequence
1. BothRulesandActionshaveaSequencethatmustbeentered.
2. Itisthereincaseyouneedthingstobeprocessedinaspecific
order.
3. Thesequencedoesnothavetobeunique.
4. ForanAction,theSequenceisveryimportantinvarioussituations,
forexample:
Version 1.0
WhenusingBuiltins,youmightfirstmovethecursortoa
particularblock,thenissueaqueryinthatblock.
WithProperties,ifyouaremovinganitemyoumightfirst
havetomakethecanvasadifferentsize.
20
TargetObject=:ORDER.ORDER_NUMBER
PropertyName=PROMPT_TEXT
Value=ClaimNumber
Thevaluecanbeinterpretedatruntime,soyoucanuseSQL
functionsandoperators.
Anyvaluestartwith=operatorwillbeinterpretedatruntime,
otherwisethevalueistreatedasisenteredinthevaluefield.
Example:Value=>=WelcometotheSalesOrderEntryMr.||user.
Version 1.0
21
22
For Canvasses:
TOPMOST_TAB_PAGE: Determines the currently selected Tab Page.
For Windows:
TITLE: the title of the window
X and Y_POS: the location within the MDI window, in inchesFor Blocks:
DEFAULT_WHERE: the WHERE clause of the SQL statement controlling queried
records
ORDER_BY: the ORDER_BY clause of the SQL statement of the queried records
INSERT_ALLOWED: if False, prevents the user from creating new records
UPDATE_ALLOWED: if False, prevents the user from updating any item in a
queried record
DELETE_ALLOWED: if False, prevents the user from deleting queried records
Version 1.0
23
The action type Message is used to display custom messages during runtime.
Message Type and Description should be entered after selecting the action type as
Message.
The available message types are
Show
Hint Error
Debug
Warn
Depending on the response expected from the user, the appropriate message type should be
selected.
Example: Message Type = Hint
Message Text = Please Follow the Date format DD-MON-YYYY
Version 1.0
24
Show:
Hint:
Error:
Version 1.0
25
TheactiontypeBuiltinisusedtoexecutetheformandAOLAPIs.
DependingontheAPItypeselected,theparametersshouldbeentered.
Example: BuiltinType=FND_UTILITIES.OPEN_URL
Argument=http://dms.dell.com
Version 1.0
26
GO_ITEM and GO_BLOCK: Move the cursor to a specific item or the first
item in a block
Common Arguments:
Version 1.0
27
Version 1.0
28
TheactiontypeSpecialisusedtoactivatetheavailablespecial
menusontheToolsmenu.
OracleApplicationsprovide45specialmenusunderToolsmenuwhich
canbeusedbycustomersbasedontheirrequirements.
SelecttheSPECIALmenuwhichisnotusedbytheform.
MenulabelisthepromptwhichappearstotheuserswhenToolsmenuis
invoked,blockspecifiestheblocksforwhichthespecialmenushouldbe
activated
Iconnameisthe.icofilename.
Aseparatorcanbecreatedabovetheactivatedspecialmenubyselecting
theRenderlinebeforemenucheckbox.
Example:
MenuEntry=SPECIAL4
MenuLabel=AdditionalCustomerInformation
EnabledinBlocks(s)=Customer
IconName=Flower.ico
Version 1.0
29
When an event occurs in the form, we look for all enabled rules
that match that Trigger Event and Trigger Object.
Version 1.0
30
Version 1.0
Result at Runtime
=User: ||NVL(:user.user_name,
New)
Multilingual Issues
Version 1.0
32
Multilingual Issues
Youcancountonnumberstobeconfusing!
So,regardlessofwhatyourcurrentsettingsare,enterallnumeric
valuesinenglishformat
Examples:
SettingtheWIDTHproperty:2.5
Creating a Condition based on the value of a numeric
field::block.field>=2.5
Version 1.0
33
Multilingual Issues
Version 1.0
WRONG:
sysdate >= to_date(1-JAN-05)
JAN will not mean January in all languages
Always specify an exact mask when converting a string to a date
Avoid Y2K issues enter years with all 4 digits
RIGHT:
sysdate >= to_date(1-1-2005, DD-MM-RRRR)
34
Version 1.0
35
Version 1.0
You should see your message pop up when the proper event occurs.
36
Version 1.0
Version 1.0
38
Customization
Version 1.0
39
Version 1.0
40
Summary
In this session we have seen :
Version 1.0
Forms Personalization
Use Sequencing
41
Thank You
Version 1.0
42