AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades HFSQL
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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).
Ejemplo
// Defines the deletion rule used in the OrdLine link
OrdLine.DeletionRule = hIntegrityForbidden
...
// Validate the data file description
HDescribeFile(OrdLine)
Sintaxis

Finding out the deletion rule Ocultar los detalles

<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 Ocultar los detalles

<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.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 13/05/2025

Señalar un error o enviar una sugerencia | Ayuda local