Share this page

# Message

## SAPUI5. Message

## new Message(messageIndex, ownerBar)

A single message in the NotificationBarTO SAPUI5 object.

##### Parameters:

Name | Type | Description
--- | --- | ---
`messageIndex` | number | The 0-based index of the message.
`ownerBar` | NotificationBarTO | The notification bar that the current message belongs to.

# Methods

## level() → {Promise.<SAPUI5.MessageLevel>}

The severity level of the message.

##### Returns:

a promise that is fulfilled with the severity level of the message.

Type
  Promise.<SAPUI5.MessageLevel>

## receivedTime() → {Promise.<Date>}

The time at which the message was received.

##### Returns:

a promise that is fulfilled with the time at which the message was received.

Type
  Promise.<Date>

## select() → {Promise.<void>}

Selects the message.

##### Returns:

a promise that is fulfilled when the operation is done.

Type
  Promise.<void>

## text() → {Promise.<string>}

The text of the message.

##### Returns:

a promise that is fulfilled with the text of the message.

Type
  Promise.<string>

Tips to improve your search results... UFT Developer JavaScript SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: