N/ui/message Module

Use the N/ui/message module to display a message at the top of the screen under the menu bar.

Important:

SuiteScript does not support direct access to the NetSuite UI through the Document Object Model (DOM). The NetSuite UI should only be accessed using SuiteScript APIs.

                                   

In This Help Topic

N/ui/message Members

Member Type

Name

Return Type / Value Type

Supported Script Types

Description

Object

message.Message

void

Client scripts

Encapsulates the Message object that gets created when calling the message.create(options) method.

Method

message.create(options)

message.Message

Client scripts

Creates a message that can be displayed or hidden near the top of the page.

Enum

message.Type

enum

Client scripts

Indicates the type of message to create and display, which specifies the background color of the message and other message indicators.

Message Object Members

Member Type

Name

Return Type / Value Type

Supported Script Types

Description

Method

Message.hide()

void

Client scripts

Hides the message.

Message.show(options)

void

Client scripts

Shows the message.

Related Topics

General Notices