ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
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
ModificationRule (Property)
In french: RègleModification
The ModificationRule property is used to configure the modification rule (integrity management) to be applied to the data file described in the code. You can:
  • Find out the modification rule used for a data file defined in the analysis or by programming.
  • Define the modification rule used for a data file (when the link is described by programming).
Example
// Define the modification rule used in the OrdLine link
OrdLine.ModificationRule = hIntegrityForbidden
...
// Validate the data file description
HDescribeFile(OrdLine)
Syntax

Finding out the modification rule Hide the details

<Modification rule> = <Binding>.ModificationRule
<Modification rule>: Integer constant
The different modification rules are as follows:
hIntegrityCascadeCascading modification: all the linked records are modified in cascade when the key item is modified in the source file.
hIntegrityDefaultValueDefault modification: the linked keys are initialized with their default value when the key item is modified in the source file.
hIntegrityForbiddenModification not allowed: the key item cannot be modified in the source file if the record is linked to another record.
hIntegrityNoneNo integrity management: no specific action is performed in the linked file when the key item is modified in the source file of the link.
<Binding>: Character string
Name of the link defined in the analysis or by the Link description type.

Defining the modification rule used in the link defined through programming Hide the details

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

Last update: 05/26/2022

Send a report | Local help