Class: Response

FormView~ Response

Represents a response object with message and error information.


new Response(params)

Constructs a new Response object.

Parameters:
Name Type Description
params Object

The parameters for constructing the Response.

Properties
Name Type Description
data any

The data associated with the Response.

Methods


addMessage(code, msg, som)

Adds a message to the response.

Parameters:
Name Type Description
code number

The error code.

msg string

The message.

som any

The SOM expression. (deprecated)


getNextMessage()

Retrieves the next message from the response.

Returns:

An object containing the error code, SOM expression (deprecated), qualified name, and message; or null if there are no more messages.

Type
Object | null