Namespace: Consultingwerk.OERA
Class 
ActionType Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.OERA.IActionType
ABSTRACT

File:ActionType
Purpose:Base class for Action Types
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Jul 16 13:10:54 CEST 2021
Purpose: Returns the comma-delimited list of fields that may be modified
within this action type
Notes: For EXTENT fields only the whole extent or no items at all can be
modified, e.g. no support for individual items in the ActionFields
list



Top Method Summary
Options Name Purpose
+ Execute (handle) Performs validation of the data in the dataset
# Consultingwerk.OERA.TableModel GetTableModelInstance (handle) Creates an instance of a Table Model
# Consultingwerk.OERA.IValidationDelegate GetValidationDelegate (Class) Returns amn instance of the ValidationClass
- ValidateActionFields (handle) Validates that only field defined in the ActionFields have been changed
# ValidateRecords (handle, IValidationDelegate, ITableModel, ITableModel) Validates the records using the Validation Method
- ValidateUnmodified (handle) Validates that no record in the buffer is modified

Top Property Summary
Options Name Purpose
# A CHARACTER ActionFields
# A CHARACTER ActionTable
# A Progress.Lang.Class TableModelClass
# A Progress.Lang.Class ValidationClass
# A CHARACTER ValidationMethod


Method Detail
Top

PUBLIC Execute (handle)

Purpose: Performs validation of the data in the dataset
Notes: Delegated by the Business Entity

Parameters:
phDataset HANDLE
The handle of the ProDataset to validate
Top

PROTECTED Consultingwerk.OERA.TableModel GetTableModelInstance (handle)

Purpose: Creates an instance of a Table Model
Notes:

Parameters:
phBuffer HANDLE
The handle of the Buffer
Returns Consultingwerk.OERA.TableModel
The TableModel instance
Top

PROTECTED Consultingwerk.OERA.IValidationDelegate GetValidationDelegate (Class)

Purpose: Returns amn instance of the ValidationClass
Notes:

Parameters:
poClass Progress.Lang.Class
The class or interface of the validation delegate
Returns Consultingwerk.OERA.IValidationDelegate
The instance of the validation class
Top

PRIVATE ValidateActionFields (handle)

Purpose: Validates that only field defined in the ActionFields have been changed
Notes:

Parameters:
phBuffer HANDLE
The handle of the buffer to validate
Top

PROTECTED ValidateRecords (handle, IValidationDelegate, ITableModel, ITableModel)

Purpose: Validates the records using the Validation Method
Notes: Iterates over the table and calls into the validation method
This method is intended to be overridden when customers use their
own style of UI Action serialization

Parameters:
phBuffer HANDLE
The handle of the buffer to be validated
poValidate Consultingwerk.OERA.IValidationDelegate
The reference to the Validation delegate instance
poBefore Consultingwerk.OERA.ITableModel
The reference to the TableModel instance for the before buffer
poAfter Consultingwerk.OERA.ITableModel
The reference to the TableModel instance for the after buffer
Top

PRIVATE ValidateUnmodified (handle)

Purpose: Validates that no record in the buffer is modified
Notes:

Parameters:
phBuffer HANDLE
The handle of the buffer to validate


Property Detail
Top

PROTECTED CHARACTER ActionFields


Returns CHARACTER
Top

PROTECTED CHARACTER ActionTable


Returns CHARACTER
Top

PROTECTED Progress.Lang.Class TableModelClass


Returns Progress.Lang.Class
Top

PROTECTED Progress.Lang.Class ValidationClass


Returns Progress.Lang.Class
Top

PROTECTED CHARACTER ValidationMethod


Returns CHARACTER


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 05:52:02