Difference Between MsgGet, MessageBox, & MsgGetText PeopleCode Functions


Wondering why there are 3 different functions or ways to get text
from a message catalog? Check the comparison below and decide which one
best fits your needs.
MsgGet(message_set, message_num, default_msg_txt [, paramlist])
The MsgGet function
retrieves a message from the PeopleCode Message Catalog and substitutes
in the values of the parameters into the text message.
Example: &MsgText = MsgGet(40000, 2, "Message not found");
MessageBox
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);
MsgGetText is very similar to MsgGet except the message set and message number will not appear after the text of the message.
MsgGetText(message_set, message_num, default_msg_txt [, paramlist])
Example: &MsgText = MsgGetText(40000, 2, "Message not found");




SHARE

peoplesoft

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

2 comments:

  1. Alveo
    Hello to every one, because I am in fact eager of reading this website's post to be
    updated on a regular basis. It consists of good stuff.

    ReplyDelete
  2. You really make it seem so easy together with your presentation however I to find this topic to be really one thing which I feel I would by no means understand.
    It seems too complicated aand very wide for me. I am having a look forward to your next put up, I'll try to get the hang of it!


    Also visit myy blog post; her comment is here

    ReplyDelete

Phaniraavi@gmail.com