Call Messages

Messages are called using the universal userexit mes_usx at menu items, buttons or any masks or field triggers. The parameter string to be passed has the following form:

mes_usx [?]message name [,Param1 [,Param 2 [,Param3]]]

For the simple output of a message, the message name will be sufficient. ? optionally creates a message window with user request. Param1...3 are optional strings that can replace placeholders in the message text at run-time.


Update Text Segments in the Message Text

The Message Text defined in the Message Data list can contain a maximum of three placeholders %s. When the message is called, they are replaced by the strings [,Param1 [,Param 2 [,Param3]]] passed in the parameter string.

Example:

When the message is called in other program situations (e.g. at a different mask) you could pass a different string instead of documents. If the message text contains 2 or 3 placeholders, DataView will replace them in the sequence of their appearance by the strings 1...3 passed.


Directly Output Message Text

Message text can be directly output without defining a message object in the Message Data List.

mes_usx ,text

DataView outputs the text in the DataView-specific message window. It cannot be output in a different window.