Use of Message-Catalog

When formatting text that will be displayed in a message, title bar, or page field, store the text in the message catalog and use the MsgGetText function to retrieve it, instead of using a simple string. This facilitates translation of the page functionality.

Example:

Right way:
FS_PAGE_WRK1.DISPLAY_TEXT = MsgGetText(21000, 14, “No items were selected for update.);

Wrong way:
FS_PAGE_WRK1.DISPLAY_TEXT = “No items were selected for update.”


admin posted at 2009-1-13 Category: PeopleCode Tips | Tags:

Leave a Reply

(Ctrl + Enter)