MsgGet(message_set, message_num, default_msg_txt [, paramlist])
Use the MsgGet function to retrieve a message from the Message Catalog and substitutes in the values of the parameters into the text message.
You can access and update messages on Message Catalog page (select PeopleTools, Utilities, Administration, Message Catalog). You can enter message text in multiple languages. The Message Catalog also enables you to enter more detailed "Explain" text about the message. The message_set and message_num parameters specify the message to retrieve from the catalog. If the message is not found in the Message Catalog, the default message provided in default_msg_txt is used. 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.
in the values of the parameters into the text message.
Example: &MsgText = MsgGet(40000, 2, "Message not found");
Retrieves messages from the Message Catalog but provides the
flexibility to change the severity of a message through the Message
Catalog, without modifying PeopleCode.
MessageBox(style, title, message_set, message_num, default_txt [, paramlist])
Example: MessageBox(0, "", 40000, 1, "Message not found", BUS_EXPENSE_PER.EMPLID, BUS_EXPENSE_PER.EXPENSE_PERIOD_DT);
Example: &MsgText = MsgGetText(40000, 2, "Message not found");
100
characters. You can pass bind values (%1, %2, %3 ... %n
) to the message text using PeopleCode functions like MsgGet
, MsgGetText
and MessageBox
. However MsgGetExplainText
is to pass bind values to the explain text and not the message text.