ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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).
Example
// Définit la règle de suppression utilisée dans la liaison LigneCde
LigneCde.RègleSuppression = hIntegrityForbidden
...
// Valide la description du fichier de données
HDescribeFile(LigneCde)
Syntax

Finding out the deletion rule Hide the details

<Deletion rule> = <Link>.DeletionRule
<Deletion rule>: Integer constant
The different deletion rules are as follows:
hIntegrityCascadeCascading deletion: deletion of the key field in the source file results in cascading deletion of all linked records.
hIntegrityDefaultValueDefault deletion: when deleting the key field in the source file, linked keys are initialized by their default value.
hIntegrityForbiddenDeletion forbidden: deletion of the key field in the source file is impossible if the record is linked to another record.
hIntegrityNoneNo integrity management: deletion of the key field in the link source file does not lead to any specific action in the linked file.
<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:
hIntegrityCascadeCascading deletion: deletion of the key field in the source file results in cascading deletion of all linked records.
hIntegrityDefaultValueDefault deletion: when deleting the key field in the source file, linked keys are initialized by their default value.
hIntegrityForbiddenDeletion forbidden: deletion of the key field in the source file is impossible if the record is linked to another record.
hIntegrityNoneNo integrity management: deletion of the key field in the link source file does not lead to any specific action in the linked file.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/13/2025

Send a report | Local help