Académique Documents
Professionnel Documents
Culture Documents
Message Dictionary lets you catalog messages for display from your application
without hardcoding them into your forms and programs.
Message Dictionary reduces redundant programming of standard messages by storing all of your
messages as entries in Message Dictionary. Once you define your messages in the Message
Dictionary, you can refer to them in your forms, concurrent programs, and other application
modules using a simple message name you define.
If you need to change your message, you only need to change it in one place.
Provide a consistent look and feel for messages within and across all your
applications
Define flexible messages that can include context-sensitive variable text
Change or translate the text of your messages without regenerating or recompiling
your application code
Message Name
A non-updatable internal identifier for a message in your application.
A message name, together with your application
name and language name, uniquely identifies your message text. You specify the
message name when you call Message Dictionary from a form or program module.
Message
Text your application displays or prints to an output file. (1800 characters)
Message Number
A number that appears with your message.
Variable Token
A keyword you create to represent a value when you define a message. You specify the
same variable token, along with its current value, when you call Message Dictionary
from your form or program module. Message Dictionary replaces each variable token in
your message with the current value you specify and then displays the message.
When your application calls Message Dictionary, Message Dictionary finds the message
associated with your application and the message name you specify, and replaces any
variable tokens with your substitute text.
The following routines in the FND_MESSAGE package are used in client-side (that is,
Oracle Forms) PL/SQL procedures to retrieve and set up messages for subsequent
display.
SET_NAME :
Retrieves your message from Message Dictionary and sets it on the message stack.
SET_STRING
Takes an input string and sets it on the message stack.
SET_TOKEN
Substitutes a message token with a value you specify.
RETRIEVE
Retrieves a message from the server-side message buffer, translates and substitutes tokens, and
sets the message on the message stack.
GET (function
Retrieves a message from the message stack and returns a VARCHAR2.
CLEAR,
Clears the message stack.
SET_NAME :
Sets a message name in the global area without actually retrieving the message from Message
Dictionary.
SET_TOKEN
Adds a token/value pair to the global area without actually doing the substitution.
CLEAR
Clears the message stack.
Method 1: Set an error message on the server, to be displayed by the forms client that called the
server procedure.
On the server, use FND_MESSAGE.SET_NAME and FND_MESSAGE.SET_TOKEN to set the
message. Then call APP_EXCEPTION.RAISE_EXCEPTION (an APPCORE routine) to raise the
application error PL/SQL exception. This exception is trapped when the server procedure is
exited and control resumes on the client side in the standard Oracle Forms ON_ERROR trigger.
The ON-ERROR trigger retrieves the message from the server and displays it.
Important: All forms built to integrate with Oracle Applications should have a form-level ON-
ERROR trigger that calls APP_STANDARD.EVENT('ON-ERROR').
APP_STANDARD.EVENT('ON-ERROR') in the ON-ERROR trigger automatically detects
application errors raised on the server and retrieves and displays those error messages in a forms
alert box.
FND_MESSAGE.DEBUG
Summary procedure FND_MESSAGE.DEBUG (value IN varchar2);
Location FNDSQF library
Description Immediately show a string. This procedure is normally used to show debugging
messages only, The string does not need to be defined in the Messages window.
( hardcoded into the form)
FND_MESSAGE.ERASE
Summary procedure FND_MESSAGE.ERASE;
Location FNDSQF library
Description Clears the Oracle Forms status line.
FND_MESSAGE.ERROR
Summary procedure FND_MESSAGE.ERROR;
Location FNDSQF library
Description Displays an error message in an Oracle Forms modal window or a concurrent
program log file.
FND_MESSAGE.GET
Summary function FND_MESSAGE.GET return varchar2;
Location FNDSQF library and database (stored function)
Description Retrieves a translated and token-substituted message from the message stack and
then clears that message from the message stack.
FND_MESSAGE.HINT
Summary procedure FND_MESSAGE.HINT;
Location FNDSQF library
Description Displays a message in the Oracle Forms status line.
FND_MESSAGE.QUESTION
Summary (button1 IN varchar2 default 'YES', button2 IN varchar2 default 'NO',
button3 IN varchar2 default 'CANCEL', default_btn IN number default 1,
cancel_btn IN number default 3, icon IN varchar2 default 'question' ) return
number;
Location FNDSQF library
Description Displays a message and up to three buttons in an Oracle Forms modal window.
FND_MESSAGE.RETRIEVE
Summary procedure FND_MESSAGE.RETRIEVE;
Location FNDSQF library
Description Retrieves a message from the database server, translates and substitutes tokens,
and sets the message on the message stack.
FND_MESSAGE.SET_NAME
Summary (application IN varchar2,
name IN varchar2);
Location FNDSQF library and database (stored procedure)
Description (Forms) Retrieves your message from Message Dictionary and sets it on the message
stack.
FND_MESSAGE.SET_STRING
Summary procedure FND_MESSAGE.SET_STRING
(value IN varchar2);
Location FNDSQF library
Description Takes an input string and sets it directly on the message stack.
FND_MESSAGE.SET_TOKEN
Summary procedure FND_MESSAGE.SET_TOKEN (token IN varchar2, value IN
varchar2, translate IN boolean default FALSE);
Location FNDSQF library and database (stored function)
Description (Forms) Substitutes a message token with a value you specify.
token - Specify the name of the token you want to substitute. This token name is
identical to the token name you use when you define your message using the
Messages form.
FND_MESSAGE.SET_NAME ('FND', 'WANT_TO_CONTINUE');
FND_MESSAGE.SET_TOKEN ('PROCEDURE', 'Compiling this flexfield');
FND_MESSAGE.SHOW
Summary procedure FND_MESSAGE.SHOW;
Location FNDSQF library
Description Displays an informational message in an Oracle Forms modal window or a
concurrent program log file.
FND_MESSAGE.WARN
Summary function FND_MESSAGE.WARN return boolean;
Location FNDSQF library
Description Displays a warning message in an Oracle Forms modal window and allows the
user to either accept or cancel the current operation.