GlideSystem - addInfoMessage(Object message)

Adds an info message for the current session.

Use getInfoMessages() to retrieve the list of info messages being shown. This method is not supported for asynchronous business rules and cannot be used within transform scripts.

Table 1. Parameters
Name Type Description
message Object The message to add.
Table 2. Returns
Type Description

Scoped equivalent

To use the addInfoMessage() method in a scoped application, use the corresponding scoped method: Scoped GlideSystem - addInfoMessage(Object message).

if ((!current.u_date1.nil()) && (!current.u_date2.nil())) {
  var start = current.u_date1.getGlideObject().getNumericValue();
  var end = current.u_date2.getGlideObject().getNumericValue();
  if (start > end) {
    gs.addInfoMessage('start must be before end');
    current.u_date1.setError('start must be before end');