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 | Argument | Description |
---|---|---|---|
event |
bo.shared.DataPortalEvent | The data portal event. |
|
modelName |
string | The name of the business object model. |
|
action |
bo.shared.DataPortalAction |
<optional> |
The type of the data portal operation. |
methodName |
string |
<optional> |
The name of the data access object method called. |
error |
bo.shared.DataPortalError |
<optional> |
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.
Members
-
<readonly> action :bo.shared.DataPortalAction
-
The type of the data portal operation.
Type:
-
<readonly> error :bo.shared.DataPortalError
-
The error occurred in data portal action, otherwise null.
Type:
-
<readonly> eventName :string
-
The name of the data portal event.
Type:
- string
-
<readonly> locale :string
-
The current locale.
Type:
- string
-
<readonly> methodName :string
-
The name of the data access object method called.
Type:
- string
-
<readonly> modelName :string
-
The name of the business object model.
Type:
- string
-
<readonly> user :bo.system.UserInfo
-
The current user.
Type: