Showing error/warning/information messages in Web Panels

By default, messages created using GeneXus' msg function are shown as success messages when K2BTools is used.

Message created using the msg function

This may not be the best UI for messages with a different meaning, as users are accostumed to associating "green" messages as success messages.

To create messages with a UI fitting the message type, the K2BToolsMsg procedure may be used. This procedure receives a message text and the message type.

The message type must be based on the K2BToolsMessageType domain, which has four possible values: Info, Success, Error, and Warning.

See how each type of message is shown in the example below.

K2BToolsMsgUsage K2BToolsMsgRuntimeAppearance
K2BToolsMsg usage Runtime appearance