Module Val_mx.pkg
************************************************************************
Confidential Trade Secret.
Copyright 1987-1997 Data Access Corporation, Miami FL, USA
All Rights reserved
DataFlex is a registered trademark of Data Access Corporation.
************************************************************************
************************************************************************
Val_mx.pkg
Version: 1.0 for DAF 1.1
Copyright (c) 1994 Data Access Corporation
05/02/94 - created
Author: John J. Tuohy
Augmentations:
Validate_items
Next
Val_MX.pkg - Validate Mixin for alternate validation capabilities.
1. Validate_All_Items_State property - Is set TRUE during a save
validation and false during a navigation validation. Let's developer
take different actions based on a save validate and a navigate
validate.
2. Validate_Mode - Determines when validations are sent.
VALIDATE_DEFAULT Works the way it does now. Validates
occur if Object_Validation is TRUE
(which is the default). This means that
validates normally occur during
downward navigation and save (when
Validate_Items is sent by DSO).
VALIDATE_ON_SAVE Validates are only sent during a save.
When this property is set
object_validation is also set FALSE. It
is only turned on inside of
Validate_Items.
VALIDATE_ON_SAVE_NEXT Validates are only sent during a save
and during NEXT navigation (ENTER and
TAB). When this property is set
object_validation is also set FALSE. It
is only turned on inside of
Validate_Items and Next messages.
Note: When this property is SET the Obvject_Validation
property is also set. It is set TRUE if mode is set to
VALIDATE_DEFAULT, else it is set False. It is not
expected that you will dynamically change the
Validate_Mode property. You'll probably set it once,
when the object is created.
12/22/94 JJT - Added code from server.pkg to validate_items.
05/25/95 JJT - Created Object_item_Validation sets object_validation.
************************************************************************
11/11/95 JJT - Validate Items now sends a smarter activate message
Activate_area (also defined here).
************************************************************************
Val_mx.pkg (view source)- import declarations
- Validate_Mixin : mixin
Define_Validate()
- Integer
Validate_All_Items_State - Integer
Private.Validate_mode
- Integer
Validate_Mode()
Get/Set Validate_Mode: When SET also set object_Validation
property
Set(Integer Mode)
- Integer
Validate_Items(Boolean bNotFindReq)
1) If Validate_mode is SAVE or SAVE_NEXT then make sure that the
validations occur (set object_validation to TRUE). If the mode is
DEFAULT the property is probably already true.
2) Set Validate_All_Items_State to T. Validate handlers can query this
property to determine if a validate is due to navigation or saving
- Integer
rVal - Integer
oldval - Integer
VAI - Integer
oldautotop
Next()
1) If Validate_mode is SAVE_NEXT then make sure that the
validations occur (set object_validation to TRUE). If the mode is
DEFAULT the property is probably already true. This insures that
validates occur during "procedural" data-entry (pressing enter or
tab) but not during event-driven data-entry
- Integer
oldval
Set(integer fg)
Set object_validation. This is sent to the focus object through
entry_clear/clear_all. All objects understand this message but only
item based (entry_form and table) objects uses this. See Deodlgmx.pkg
- integer
Object_Item_Validation()
References (2):
Field References (0):
Module | Containing Symbol | Line |
---|