Wednesday, May 21, 2014

The Message Catalog

Define a message

The utility page for creating your messages if found in:
Main Menu > People Tools > Utilities > Administration > Message Catalog

 Message Set is a grouping of related messages each with their own number.  The message text is what will be displayed in the Message log or on the screen.  If the users clicks on Explain in the message log they will get the Message Text and Description from the message catalog.  


Triggering a Message

When you kick out a message from Application Engine it will try to resolve the text using the Set number followed by message number.  If the message is not found the default text in the example below will be provided.  You can also include place holders for both default text and a message catalog version.

MessageBox(style, title, message_set, message_number, default_text [,parameters] )

In this example I created a set 21007 and Message number 7 is an employee Count.


App Engine Message Example

MessageBox(0, "", 21007, 7, "Count = %1 ", &mainCount);


No Catalog Example

In some cases you want to spit out a message during testing but it's not going to be included in the final release of message.  For these the common practice is to use set 0 and message number 0.  We will remove them or comment the messages out before moving to production.

MessageBox(0, "", 0, 0, " Testing Main Counter = %1 ", &mainCount);

No comments:

Post a Comment