Namespace: Consultingwerk.SmartComponents.Implementation
Class 
SmartDataObjectValidationError Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.AppError
Implements: Consultingwerk.SmartComponents.Base.IFieldValidationError

File:SmartDataObjectValidationError
Purpose:Error class for validation errors returned from an ADM2
SmartDataObject
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Jun 03 06:38:17 CET 2009


Top Constructor Summary
Options Name Purpose
+ SmartDataObjectValidationError (character, character) Constructor for the SmartDataObjectValidationError class
+ SmartDataObjectValidationError (character, character, character, character) Constructor for the SmartDataObjectValidationError class

Top Property Summary
Options Name Purpose
+ CHARACTER ErrorFields Returns information about the fields attached to this error
+ CHARACTER ErrorTables Returns information about the fields attached to this error
+ System.Windows.Forms.Control FocusControl If the result of a field validation indicates a validation error, the currently tested Control is indicated by the FocusControl. This can be used to set the focus in the running application to the field with the invalid value. Enforced by Interface IFieldValidationError.
+ CHARACTER FocusControlName Returns the name of a data property (binding source field) that is flagged with an error from a validation routine. Enforced by Interface IFieldValidationError.


Constructor Detail
Top

PUBLIC SmartDataObjectValidationError (character, character)

Purpose: Constructor for the SmartDataObjectValidationError class
Notes:

Parameters:
pcReturnValue CHARACTER
The return value associated with the error
pcFieldName CHARACTER
The name of the field that raised the error
Top

PUBLIC SmartDataObjectValidationError (character, character, character, character)

Purpose: Constructor for the SmartDataObjectValidationError class
Notes:

Parameters:
pcReturnValue CHARACTER
The return value associated with the error
pcFieldName CHARACTER
The name of the field that raised the error
pcFields CHARACTER
The fields associated with the error
pcTables CHARACTER
The tables associated with the error


Property Detail
Top

PUBLIC CHARACTER ErrorFields

Purpose: Returns information about the fields attached to this error
Notes:

Returns CHARACTER
Top

PUBLIC CHARACTER ErrorTables

Purpose: Returns information about the fields attached to this error
Notes:

Returns CHARACTER
Top

PUBLIC System.Windows.Forms.Control FocusControl

Purpose: If the result of a field validation indicates a validation error,
the currently tested Control is indicated by the FocusControl. This
can be used to set the focus in the running application to the field with
the invalid value.
Enforced by Interface IFieldValidationError.
Notes: Always returns ? because this class of error does not know the
actual reference to the databound field

Returns System.Windows.Forms.Control
Top

PUBLIC CHARACTER FocusControlName

Purpose: Returns the name of a data property (binding source field) that
is flagged with an error from a validation routine.
Enforced by Interface IFieldValidationError.
Notes: FieldName should contain clientside fieldname, not serverside
field name

Returns CHARACTER


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:32:18