class staticbo.shared. DataPortalEventArgs
Source: shared/
Provides the context for data portal events.
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 |
|
The data portal event. |
|
modelName |
string |
|
The name of the business object model. |
action |
Yes |
The type of the data portal operation. |
|
methodName |
string |
Yes |
The name of the data access object method called. |
error |
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-onlyaction
bo.shared.DataPortalAction
The type of the data portal operation.
read-onlyerror
bo.shared.DataPortalError
The error occurred in data portal action, otherwise null.
read-onlyeventName
string
The name of the data portal event.
read-onlylocale
string
The current locale.
read-onlymethodName
string
The name of the data access object method called.
read-onlymodelName
string
The name of the business object model.
read-onlyuser
bo.system.UserInfo
The current user.