new DataPortalEventArgs(event, modelName[, action][, methodName][, error])

Creates new data portal event arguments.

Warning: Data portal event arguments are created in models internally. They are intended only to make publicly available the context for data portal events.

Parameters

Name Type Optional Description

event

bo.shared.DataPortalEvent

 

The data portal event.

modelName

string

 

The name of the business object model.

action

bo.shared.DataPortalAction

Yes

The type of the data portal operation.

methodName

string

Yes

The name of the data access object method called.

error

bo.shared.DataPortalError

Yes

The eventual error occurred in data portal action.

Throws

Argument error: The event must be a DataPortalEvent item.

Argument error: The model name must be a non-empty string.

Argument error: The action must be a DataPortalAction item.

Argument error: The method name must be a string value.

Argument error: The error must be a DataPortalError object.

Properties

read-only
action  bo.shared.DataPortalAction

The type of the data portal operation.

read-only
error  bo.shared.DataPortalError

The error occurred in data portal action, otherwise null.

read-only
eventName  string

The name of the data portal event.

read-only
locale  string

The current locale.

read-only
methodName  string

The name of the data access object method called.

read-only
modelName  string

The name of the business object model.

read-only
user  bo.system.UserInfo

The current user.