USoft applies USoft-defined system messages as default texts in default applications. System Message records for these messages are automatically created for you (in table T_SYS_MSG) when you (re)run the Load System Messages routine from the Tools, Language submenu in USoft Definer. Here is an example of such a record, along with its (2) Parameter child records. This example record has a USoft-defined Category:
System Message
|
Code
|
17
|
Category
|
Frequent End User Msg
|
Name
|
NOT_FIXED_LENGTH
|
Message
|
Value "<Value>" must have fixed length (<Length>).
|
This record has the following child records:
System Message Parameters
|
Code
|
Category
|
Parameter
|
Seqno
|
17
|
Frequent End User Msg
|
Value
|
10
|
17
|
Frequent End User Msg
|
Length
|
20
|
You can add System Messages that you define yourself. Do this simply by adding (INSERT) new System Message records manually. Make sure you use a Category that you have defined yourself and an integer value for Code that is unique within that Category. You can call user-defined messages by invoking the MessageLanguage method of the RulesEngine internal component. For example:
INVOKE RulesEngine.MessageLanguage WITH
SELECT 'My Message Category'
, 'MY_MESSAGE_NAME'
, 'ERROR'
, 'Source file "' || p.source_file ||
'" does not exist.'
FROM p_apply_custom_xsl p
WHERE 0 =
(
INVOKE uswtw_winfiles.filesexist WITH
SELECT p.source_file
)
|