Class: Field_Attributes
Class Hierarchy:
ARRAY

Field_AttributesClass Definition
Properties
String
Private.Validation_Types
Private: This replaces the use of arrays to get at this value. This
allows us to find specific validation types (like checkboxes) more
quickly than scanning an array
Functions and Procedures

Construct_Object()
************************************************************************//
Construct_object ype //
Define storage for validation types. Access to storage is private. //
************************************************************************//

Create_Items()
************************************************************************//
Create_Items. //
Set any defaults required by this class when the main file is created. //
Create a string which contains all validation types. Set all to //
No extended validation type. //
************************************************************************//
String
Field_CheckBox_Value(Integer iField Integer iState)
************************************************************************//
Function Field_CheckBox_Value //
Return the Value associated with the field and its select-state. //
************************************************************************//
String
Field_Error_Message(Integer iField)
Integer
Field_Error_Number(Integer iField)
************************************************************************//
Get Field_error_Number //
Get Field_error_Message //
Used to retreive the error number and message for a particular field //
************************************************************************//

Field_Fill_List(integer iField integer iObj integer iMsg)
************************************************************************//
Field_Fill_List //
All extended validations know how to send callback messages (iMsg) to //
the calling object (iObj). This allows external lists to get filled w/ //
the contents of a range. Used by combo boxes, spinners, etc. //
************************************************************************//

Field_Fill_List_Field_Check(Integer iField Integer iObj Integer iMsg)
************************************************************************//
Procedure Field_fill_list_Field_Check //
Callback to provide all valid value for this validation. //
Call back with all valid check values //
************************************************************************//

Field_Fill_List_Field_Checkbox(Integer iField Integer iObj Integer iMsg)
************************************************************************//
Procedure Field_fill_list_Field_Checkbox //
Callback to provide all valid value for this validation. //
Just call back with the two true and false values //
************************************************************************//

Field_Fill_List_Field_Range(Integer iField Integer iObj Integer iMsg)
************************************************************************//
Procedure Field_fill_list_Field_Range //
Callback to provide all valid value for this validation. //
Just call back with the two range values //
************************************************************************//

Field_Fill_List_Field_Table(Integer iField Integer iObj Integer iMsg)
************************************************************************//
Procedure Field_fill_list_Field_table //
Callback to provide all valid value for this validation. //
Pass the request on to the validation table. This is the most common //
use of this. //
************************************************************************//
integer
Field_Table_Object(integer iField)
************************************************************************//
Field_Table_Object //
Return the id of the validation table if one exists. Otherwise return //
a zero. //
************************************************************************//
Integer
Field_Validation_Type(Integer iField)
************************************************************************//
Get/Set Field_Validation_Type //
Returns the extended validation type for the passed field. //
************************************************************************//
integer
Field_Value_Select_State(Integer iField String sValue)
************************************************************************//
Function Field_Value_Select_State //
Return the select_state based on the passed value and field //
************************************************************************//
integer
Next_Validation_Type(String sType Integer iOffset)
************************************************************************//
Next_Validation_Type //
Return field number of next field matching the passed validation type. //
Pass validation type and last position checked. Return 0 if no match //
************************************************************************//
Integer
Prompt_Object(Integer iField)
************************************************************************//
Procedure Prompt_Object //
Often extended valditation types can provide automatic prompt //
objects. If the extended type supports a prompt object and there is //
a global validation_list object, we will use it //
************************************************************************//

Set(Integer iField String sType)

Set(Integer iField Integer iErr String sMsg)
************************************************************************//
Procedure Set Field_Error //
This procedure will be called by the Extended_Data_Set to set the //
errornumber and message which will be triggered when it needs to. //
************************************************************************//

Set(Integer iField String sMin String sMax)
************************************************************************//
Procedure Set Field_Value_Range //
Procedure to set the range for a field. It will automatically set the //
validation type of the field as well. //
************************************************************************//

Set(Integer iField String sCheck)
************************************************************************//
Procedure Set Field_Value_Check //
Procedure to set the check for a field. It will automatically set the //
validation type of the field as well. //
************************************************************************//

Set(Integer iField String sTrue String sFalse)
************************************************************************//
Procedure Set Field_CheckBox_Values //
Procedure to set up a checkbox field. We will store the TRUE and FALSE //
Values in the extended array. //
************************************************************************//

Set(Integer iField Integer iObj)
************************************************************************//
Procedure Set Field_Value_Table //
The object keeps track of a validation table object. This table object //
can be any type of object must at a minimum understand a small message //
protocol (see xvaltbl.pkg for info) //
************************************************************************//
Integer
Validate_Field(Integer iField)
************************************************************************//
Validate_Field //
This function manages the validation of a field against its extended //
validations. //
************************************************************************//
Integer
Validate_Field_Check(Integer iField)
************************************************************************//
Validate_Field_Check //
Function to check a fields value agains a given check string. //
************************************************************************//
Integer
Validate_Field_Checkbox(Integer iField)
************************************************************************//
Validate_Field_Checkbox
Check that the buffer value is one of the two checkbox values. //
************************************************************************//
Integer
Validate_Field_Range(Integer iField)
************************************************************************//
Validate_Field_Range //
Function to check a fields value agains a given check string. //
************************************************************************//
Integer
Validate_Field_Table(Integer iField)
************************************************************************//
Validate_Field_Table //
This valdates against a validation table if appropriate (if a table //
exists and the table's validate_State is T). It validates by passing //
the message validate_value to the validation table object //
************************************************************************//
Instances
Break_Array | Report.pkg | 222 |
Button_Ids | Dfclient.pkg | 498 |
ColCkBox | Dfsellst.pkg | 129 |
EV | Dfdtcent.pkg | 41 |
EV | Dfenrad.pkg | 93 |
Export_Array | Dd_cddeo.pkg | 42 |
item$group | dep_item.pkg | 85 |
item_group_ids | dep_item.pkg | 67 |
oArgs | cCommandLine.pkg | 22 |
oBreakArray | cReport.pkg | 217 |
oColParams | Dfdata.pkg | 70 |
oDFColorArray | Df_print.pkg | 982 |
oDFColorArray | Winprint2.pkg | 74 |
oDiagramArray | Df_print.pkg | 1061 |
oDiagramArray | Winprint2.pkg | 94 |
oEntryValues | Dd_pklst.pkg | 52 |
oErrorNumber | cWebAppError.pkg | 146 |
oErrorText | cWebAppError.pkg | 148 |
oFieldNr | cWebAppError.pkg | 152 |
oFileNr | cWebAppError.pkg | 150 |
oFileNr | cVdfInternetSession.pkg | 351 |
oLineNr | cWebAppError.pkg | 154 |
oRecords | Datalist.pkg | 178 |
oRptTotal | cHtmlreport.pkg | 37 |
oWpoID | cVdfInternetSession.pkg | 439 |
Radio_Objects | Dfrad_mx.pkg | 45 |
RptTotal | Dfwinrpt.pkg | 61 |
RptTotal | cWinReport2.pkg | 23 |
Seq_Channel_List | seq_chnl.pkg | 57 |
Statushelp_Array | Windows.pkg | 3030 |
Statushelp_Array | Sthlp_mx.pkg | 11 |
Statushelp_Array | Datadict.pkg | 1184 |
System_File_obj | Datadict.pkg | 1193 |
WinQLErrors | CrystalReport.pkg | 962 |
References (1):