|
|
|
|
|
DeletionRule (Property) In french: RègleSuppression
The DeletionRule property is used to configure the deletion rule (integrity management) to be applied to the data file described programmatically. You can: - Find out the deletion rule used for a data file defined in the analysis or programmatically
- Define the deletion rule used for a data file (only for dynamic links defined programmatically).
OrdLine.DeletionRule = hIntegrityForbidden
...
HDescribeFile(OrdLine)
Syntax
Finding out the deletion rule Hide the details
<Deletion rule> = <Link>.DeletionRule
<Deletion rule>: Integer constant The different deletion rules are as follows:
| | hIntegrityCascade | Cascading delete: all the linked records are deleted in cascade when the key item is deleted from the source file. | hIntegrityDefaultValue | Default deletion: the linked keys are initialized with their default value when the key item is deleted from the source file. | hIntegrityForbidden | Deletion not allowed: the key item cannot be deleted from the source file if the record is linked to another record. | hIntegrityNone | No integrity management: no specific action is performed in the linked file when the key item is deleted from the source file of the link. |
<Link>: Character string Name of the link defined in the analysis or by the Link Description type.
Defining the deletion rule used in the link defined programmatically Hide the details
<Link>.DeletionRule = <Deletion rule>
<Link>: Character string Name of the link used. This name is defined with the Link Description type. <Deletion rule>: Integer constant The different deletion rules are as follows:
| | hIntegrityCascade | Cascading delete: all the linked records are deleted in cascade when the key item is deleted from the source file. | hIntegrityDefaultValue | Default deletion: the linked keys are initialized with their default value when the key item is deleted from the source file. | hIntegrityForbidden | Deletion not allowed: the key item cannot be deleted from the source file if the record is linked to another record. | hIntegrityNone | No integrity management: no specific action is performed in the linked file when the key item is deleted from the source file of the link. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|