Namespace: Consultingwerk.OERA
Class 
ValidationHelper Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.OERA.Validate

File:ValidationHelper
Purpose:Provides Assertion-Style validation routines for ProDataset
buffers
Syntax:Static methods
Description:This class is a facade to the Consultingwerk.OERA.Validate
class. This class can be used to avoid compile error caused
by conflicts of code using the abreviated class name Validate
when referenceing the static methods and some database tables
contian fields that are named Validate....
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat Apr 23 11:50:46 CEST 2016



Top Method Summary
Options Name Purpose
+ LOGICAL CanFind (handle, character, character, character, character, character) Validates that a Business Entity record is accessible
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL EQ (handle, character, character, character) Validates that a character field is equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL EQ (handle, character, date, character) Validates that a date field is is equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL EQ (handle, character, datetime, character) Validates that a datetime field is is equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL EQ (handle, character, datetime-tz, character) Validates that a datetime-tz field is is equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL EQ (handle, character, decimal, character) Validates that a numeric field is equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL EQ (handle, character, integer, character) Validates that a numeric field is equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GE (handle, character, character, character) Validates that a character field is greater than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GE (handle, character, date, character) Validates that a date field is greater than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GE (handle, character, datetime, character) Validates that a datetime field is greater than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GE (handle, character, datetime-tz, character) Validates that a datetime-tz field is greater than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GE (handle, character, decimal, character) Validates that a numeric field is greater than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GE (handle, character, integer, character) Validates that a numeric field is greater than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GT (handle, character, character, character) Validates that a character field is greater than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GT (handle, character, date, character) Validates that a date field is greater than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GT (handle, character, datetime, character) Validates that a datetime field is greater than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GT (handle, character, datetime-tz, character) Validates that a datetime-tz field is greater than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GT (handle, character, decimal, character) Validates that a numeric field is greater than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL GT (handle, character, integer, character) Validates that a numeric field is greater than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsEmpty (handle, character, character) Validates that a character field is Empty
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsInList (handle, character, character, character) Validates that a character field value is in a given list
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsInList (handle, character, character, character, character) Validates that a character field value is in a given list
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsInRange (handle, character, integer, integer, character) Validates that an integer field is in a given range
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsNotNullOrEmpty (handle, character, character) Validates that a character field is not Null or Empty
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsNotRestricted (handle, character, character, character) Validates that the given data item is not restricted by the security services
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsNotUnknown (handle, character, character) Validates that a field's value is not ?
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsNotUnknownOrZero (handle, character, character) Validates that a numeric field's value is not unknown value or zero
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsTokenNotRestricted (handle, character, character) Validates that the user has authorization for the given security token. This is not a field level validation. This is a row level validation
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsUnknown (handle, character, character) Validates that a field's value is ?
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsUnknownOrZero (handle, character, character) Validates that a numeric field's value is unknown or zero
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsWeekday (handle, character, character) Validates that a date field's value is a weekday (Monday - Friday)
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsWeekday (handle, character, WeekDayEnum, character) Validates that a date field's value is on the given day of the week
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL IsZero (handle, character, character) Validates that a numeric field's value is zero
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LE (handle, character, character, character) Validates that a character field is less than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LE (handle, character, date, character) Validates that a date field is less than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LE (handle, character, datetime, character) Validates that a datetime field is less than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LE (handle, character, datetime-tz, character) Validates that a datetime-tz field is less than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LE (handle, character, decimal, character) Validates that a numeric field is less than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LE (handle, character, integer, character) Validates that a numeric field is less than or equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LT (handle, character, character, character) Validates that a character field is less than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LT (handle, character, date, character) Validates that a date field is less than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LT (handle, character, datetime, character) Validates that a datetime field is less than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LT (handle, character, datetime-tz, character) Validates that a datetime-tz field is less than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LT (handle, character, decimal, character) Validates that a numeric field is less than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL LT (handle, character, integer, character) Validates that a numeric field is less than a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL MaxLength (handle, character, integer, character) Validates that a character field's value is not longer than the given length
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL MinLength (handle, character, integer, character) Validates that a character field's value is not shorter than the given length
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL NE (handle, character, character, character) Validates that a character field is not equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL NE (handle, character, date, character) Validates that a date field is is not equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL NE (handle, character, datetime, character) Validates that a datetime field is is not equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL NE (handle, character, datetime-tz, character) Validates that a datetime-tz field is is not equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL NE (handle, character, decimal, character) Validates that a numeric field is not equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL NE (handle, character, integer, character) Validates that a numeric field is not equal to a value
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL NotCanFind (handle, character, character, character, character, character) Validates that a Business Entity record is not available
Inherited from Consultingwerk.OERA.Validate
+ LOGICAL ReadOnly (handle, character, character) Validates that a field is not changed
Inherited from Consultingwerk.OERA.Validate

Top Constructor Summary
Options Name Purpose
# ValidationHelper () Constructor for the Validate class


Method Detail
Top

PUBLIC LOGICAL CanFind (handle, character, character, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a Business Entity record is accessible
Notes: &1 can be passed as part of the query string and will be replaced
(substitute) with the current field value of the source buffer

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate (the field's value may be used for &1 in the pcErrorMessage)
pcBusinessEntityName CHARACTER
The name of the Business Entity
pcTempTableName CHARACTER
The name of the temp-table
pcQueryString CHARACTER
The query string, e.g. "FOR EACH eSalesRep WHERE eSalesrep.SalesRep = 'BBB'" OR "WHERE eSalesrep.SalesRep = 'BBB'" OR "eSalesrep.SalesRep = 'BBB'"
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the record can be found
Top

PUBLIC LOGICAL EQ (handle, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field is equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcValue CHARACTER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL EQ (handle, character, date, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a date field is is equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATE
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL EQ (handle, character, datetime, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime field is is equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL EQ (handle, character, datetime-tz, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime-tz field is is equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME-TZ
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL EQ (handle, character, decimal, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdeValue DECIMAL
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL EQ (handle, character, integer, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
piValue INTEGER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GE (handle, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field is greater than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcValue CHARACTER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GE (handle, character, date, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a date field is greater than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATE
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GE (handle, character, datetime, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime field is greater than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GE (handle, character, datetime-tz, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime-tz field is greater than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME-TZ
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GE (handle, character, decimal, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is greater than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdeValue DECIMAL
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GE (handle, character, integer, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is greater than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
piValue INTEGER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GT (handle, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field is greater than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcValue CHARACTER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GT (handle, character, date, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a date field is greater than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATE
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GT (handle, character, datetime, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime field is greater than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GT (handle, character, datetime-tz, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime-tz field is greater than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME-TZ
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GT (handle, character, decimal, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is greater than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdeValue DECIMAL
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL GT (handle, character, integer, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is greater than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
piValue INTEGER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsEmpty (handle, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field is Empty
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsInList (handle, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field value is in a given list
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcList CHARACTER
The list of valid values
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsInList (handle, character, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field value is in a given list
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcList CHARACTER
The list of valid values
pcDelimeter CHARACTER
The list delimeter character
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsInRange (handle, character, integer, integer, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that an integer field is in a given range
Notes: Upper limit and lower limit are considered valid values

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
piLowerLimit INTEGER
The lower limit of the range
piUpperLimit INTEGER
The upper limit of the range
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsNotNullOrEmpty (handle, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field is not Null or Empty
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsNotRestricted (handle, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that the given data item is not restricted by the security
services
Notes: Provides data security based on the SmartFramework ISecurityService

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcSecurityRealmCode CHARACTER
The code of the security realm to validate the field against
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field's value is not restricted
Top

PUBLIC LOGICAL IsNotUnknown (handle, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a field's value is not ?
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsNotUnknownOrZero (handle, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field's value is not unknown value or zero
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsTokenNotRestricted (handle, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that the user has authorization for the given security
token. This is not a field level validation. This is a row level
validation
Notes: Provides data security based on the SmartFramework ITokenSecurityService

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcSecurityTokenCode CHARACTER
The code of the security token to validate the
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field's value is not restricted
Top

PUBLIC LOGICAL IsUnknown (handle, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a field's value is ?
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsUnknownOrZero (handle, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field's value is unknown or zero
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsWeekday (handle, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a date field's value is a weekday (Monday - Friday)
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsWeekday (handle, character, WeekDayEnum, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a date field's value is on the given day of the week
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
poWeekDay WeekDayEnum
The WeekDayEnum value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL IsZero (handle, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field's value is zero
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LE (handle, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field is less than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcValue CHARACTER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LE (handle, character, date, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a date field is less than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATE
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LE (handle, character, datetime, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime field is less than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LE (handle, character, datetime-tz, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime-tz field is less than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME-TZ
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LE (handle, character, decimal, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is less than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdeValue DECIMAL
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LE (handle, character, integer, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is less than or equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
piValue INTEGER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LT (handle, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field is less than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcValue CHARACTER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LT (handle, character, date, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a date field is less than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATE
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LT (handle, character, datetime, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime field is less than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LT (handle, character, datetime-tz, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime-tz field is less than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME-TZ
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LT (handle, character, decimal, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is less than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdeValue DECIMAL
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL LT (handle, character, integer, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is less than a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
piValue INTEGER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL MaxLength (handle, character, integer, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field's value is not longer than the given
length
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
piMaxLength INTEGER
The maximum length for the character field
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 as a place holder for the length
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL MinLength (handle, character, integer, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field's value is not shorter than the given
length
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
piMinLength INTEGER
The maximum length for the character field
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 as a place holder for the minimum length
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL NE (handle, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a character field is not equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcValue CHARACTER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL NE (handle, character, date, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a date field is is not equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATE
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL NE (handle, character, datetime, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime field is is not equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL NE (handle, character, datetime-tz, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a datetime-tz field is is not equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdtValue DATETIME-TZ
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL NE (handle, character, decimal, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is not equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pdeValue DECIMAL
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL NE (handle, character, integer, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a numeric field is not equal to a value
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
piValue INTEGER
The value to compare
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value and &2 for the compared value
Returns LOGICAL
True when the field meets the criteria
Top

PUBLIC LOGICAL NotCanFind (handle, character, character, character, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a Business Entity record is not available
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate (the field's value may be used for &1 in the pcErrorMessage)
pcBusinessEntityName CHARACTER
The name of the Business Entity
pcTempTableName CHARACTER
The name of the temp-table
pcQueryString CHARACTER
The query string, e.g. "FOR EACH eSalesRep WHERE eSalesrep.SalesRep = 'BBB'"
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the field value
Returns LOGICAL
True when the record can be found
Top

PUBLIC LOGICAL ReadOnly (handle, character, character)

Inherited from Consultingwerk.OERA.Validate
Purpose: Validates that a field is not changed
Notes:

Parameters:
phDatasetBuffer HANDLE
The handle to the ProDataset Buffer
pcFieldName CHARACTER
The field name to validate
pcErrorMessage CHARACTER
The error message, optionally using &1 as a place holder for the current field value and &2 for previous field value (BEFORE-TABLE)
Returns LOGICAL
True when the field was not changed or the row-state is not row-modified


Constructor Detail
Top

PROTECTED ValidationHelper ()

Purpose: Constructor for the Validate class
Notes: Disallow instance creation



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