VPMDataHandlerBusinessRules Class

The VPMDataHandlerBusinessRules class is a non-visual custom class that contains methods called by VPM Enterprise data-handler object methods.

Properties

The following table lists the class properties. The properties listed include the standard Visual FoxPro class properties that the VPM Enterprise class uses and the VPM Enterprise custom properties. Where appropriate, the Comments column of the table describes a property and provides suggestions for its use.

Property & Initial Value

Comments

Standard Properties Used:

 

Name = ďvpmdatahandlerbusinessrulesĒ

 

Custom Properties:

None

Methods

The following table lists the class methods. The methods listed include the standard Visual FoxPro class methods that the VPM Enterprise class uses and the VPM Enterprise custom methods. Where appropriate, the Comments column of the table describes a method and provides suggestions for its use. See the Comments of the Form_Toolbar class methods for more details on the usage of the following VPM Enterprise custom methods.

Method

Comments

Standard Methods Used:

None

Custom Methods:

 

FieldValidation

Called by the data handler objectís FieldValidation method when validating a field value. If this method returns .F., the code in this method determines what value and message is returned by the FieldValidation method.

Parameters: stcDatabase, stcTableOrView, stcField, stValue, stcRulesID, stoCallingObject

PostAdd

Called by the data handler objectís AddRecord method after a record has been created. If this method returns .F., the addition of the record is rolled back (the new record is removed/deleted).

Parameters: stcRulesID, stoCallingObject

PostCopy

Called by the data handler objectís AddRecord method after a record has been copied. If this method returns .F., the copying of the record is rolled back (the copied record is removed/deleted).

Parameters: stcRulesID, stoCallingObject

PostDelete

Called by the data handler objectís DeleteRecord method after the deletion of a record. If this method returns .F., the deletion of the record is rolled back (the deleted record is undeleted).

Parameters: stcRulesID, stoCallingObject

PostDeletePostTransaction

Called by the data handler objectís DeleteRecord method after the deletion of a record.

Parameters: stcRulesID, stoCallingObject

PostFieldValidation

Called by the data handler objectís FieldValidation method after validating a field value. If this method returns .F., the code in this method determines what value and message is returned by the FieldValidation method.

Parameters: stcDatabase, stcTableOrView, stcField, stValue, stcRulesID, stoCallingObject

PostRestore

Called by the data handler objectís RestoreRecord method after restoring a record.

Parameters: stcRulesID, stoCallingObject

PostSave

Called by the data handler objectís SaveRecord method after the saving of a record. If this method returns .F., the saving of the record is rolled back.

Parameters: stcRulesID, stoCallingObject

PostSavePostTransaction

Called by the data handler objectís SaveRecord method after the saving of a record.

Parameters: stcRulesID, stoCallingObject

PreAdd

Called by the data handler objectís AddRecord method before the addition of a record. If this method returns .F., the addition of the record is cancelled.

Parameters: stcRulesID, stoCallingObject

PreCopy

Called by the data handler objectís AddRecord method before the copying of a record. If this method returns .F., the copying of the record is cancelled.

Parameters: stcRulesID, stoCallingObject

PreDelete

Called by the data handler objectís DeleteRecord method before the deletion of a record. If this method returns .F., the deletion of the record is cancelled.

Parameters: stcRulesID, stoCallingObject

PreDeletePreTransaction

Called by the data handler objectís DeleteRecord method before the deletion of a record. If this method returns .F., the deletion of the record is cancelled.

Parameters: stcRulesID, stoCallingObject

PreFieldValidation

Called by the data handler objectís FieldValidation method before the validation of a field value. If this method returns .F., the code in this method determines what value and message is returned by the FieldValidation method.

Parameters: stcDatabase, stcTableOrView, stcField, stValue, stcRulesID, stoCallingObject

PreRestore

Called by the data handler objectís RestoreRecord method before the restoring of a record. If this method returns .F., the restore is cancelled.

Parameters: stcRulesID, stoCallingObject

PreSave

Called by the data handler objectís SaveRecord method before the saving of a record. If this method returns .F., the save is cancelled.

Parameters: stcRulesID, stoCallingObject

PreSavePreTransaction

Called by the data handler objectís SaveRecord method before the saving of a record. If this method returns .F., the save is cancelled.

Parameters: stcRulesID, stoCallingObject

More:

Report Classes