OpenWGA 7.9 - TMLScript reference

TMLContext "this"
Method :

addWarning(message[, severe])

On object TMLContext "this"
Usage Adds a custom WebTML warning
Description With this method you can issue your own WebTML warnings to warn about some failure or put out debug information. These are displayed on the WebTML page in a tag <tml:warnings/> and/or issued to the application log, depending on server configuration.
Parameters message (String):

Message of the warning

severe (Boolean, optional):

Flag that marks the warning as "severe". Severe warnings will cancel the execution of the current WebTML tag and wil be displayed with another icon in <tml:warnings/>. Defaults to false.

Allowed in script types
  • WebTML pages and normal WebTML actions
Examples Issuing a non-severe warning about something that has gone wrong in your code:

this.addWarning( "Function couldn't be evaluated!", false );