PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 through programming. You can:
  • Find out the deletion rule used for a data file defined in the analysis or through programming
  • Define the deletion rule used for a data file (when describing the dynamic link through programming only).
Versions 17 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Define the deletion rule used in the OrdLine link
OrdLine.DeletionRule = hIntegrityForbidden
...
// Validate the data file description
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:
hIntegrityNoneNo integrity management: no specific action is performed in the linked file when the key item is deleted from the source file of the link.
hIntegrityCascadeCascading deletion: all the linked records are deleted in cascade when the key item is deleted from the source file.
hIntegrityForbiddenDeletion not allowed: the key item cannot be deleted from the source file if the record is linked to another record.
hIntegrityDefaultValueDefault deletion: the linked keys are initialized with their default value when the key item is deleted from the source 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 through programming Hide the details

<Link>.DeletionRule = <Deletion rule>
<Link>: Character string
Name of the link used. This name was defined by the Link description type.
<Deletion rule>: Integer constant
The different deletion rules are as follows:
hIntegrityNoneNo integrity management: no specific action is performed in the linked file when the key item is deleted from the source file of the link.
hIntegrityCascadeCascading deletion: all the linked records are deleted in cascade when the key item is deleted from the source file.
hIntegrityForbiddenDeletion not allowed: the key item cannot be deleted from the source file if the record is linked to another record.
hIntegrityDefaultValueDefault deletion: the linked keys are initialized with their default value when the key item is deleted from the source file.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment