Sunteți pe pagina 1din 6

Message Catalog & Message Catalog Functions Message Catalog is a place for all the user defined and

system defined messages, Here Message sets 1 through 19,999 are reserved for use by PeopleSoft applications. Message sets 20,000 through 32,767 can be used by PeopleSoft users. Message Catalog Navigation PeopleTools | Utilities | Administration |Message Catalog

Entering Into Message Catalog

Message Catalog Functions are MsgGet(message_set, message_num, default_msg_txt [, paramlist]) MsgGetText(message_set, message_num, default_msg_txt [, paramlist]) MsgGetExplainText(message_set, message_num, default_msg_txt [, paramlist]) MessageBox(style, title, message_set, message_num, default_txt [, paramlist])

Here style It tells how final message has to be displayed , We are having different style parameters they are Message Style 0 1 2 3 4 5 Constant %MsgStyle_OK %MsgStyle_OKCancel %MsgStyle_AbortRetryIgnore %MsgStyle_YesNoCancel %MsgStyle_YesNo %MsgStyle_RetryCancel Appearance Ok Button will be displayed OK Cancel Buttons will be displayed Abort Retry Ignore Buttons will be displayed Yes No Cancel Buttons will be displayed Yes No Buttons will be displayed Retry Cancel Buttons will be displayed

Title message_set message_num default_msg_txt

Title of the Message Box Message set number [like 3000,22000] Message Number respective to message set *23,10+ If no message is there , Default message will be displayed

[, paramlist] These are all the optional parameters , Can consist bind variables in the form of (:1) and (:2) ,These can be further referenced by the user input values given by user.

Message Box Message Box displays information in a box, Depends on how we use the function below are the some of the examples for MessageBox with different style parameters

If the style parameter is 1 then

If the style parameter is 2 then

If the style parameter is 3 then

If the style parameter is 4 then

If the style parameter is 5 then

Notes : MessagBox displays both text and explain text If MessageBox displays any button other than OK , Then its known as Think Time Function Style parameter is ignored if severity is other than message.

MsgGet MsgGet is used to get the message from the catalog Apart from that it shows message set and message number also. MsgGetText MsgGetText is used to get the message from the catalog. Difference between MsgGet and MsgGetText The main difference b/w MsgGet & MsgGetText are MsgGet shows both set and message number

MsgGetText shows plain message

MsgGetExplainText:

MsgGetExplainText is going to get the message from Explanation in the catalog

Using BIND Variables The message catalog contains the following message

If you included the following code

Parameters will get replaced by bind variables in the catalog. Finally it gives O/P like

S-ar putea să vă placă și