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
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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
// 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)
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 delete: all the linked records are deleted in cascade when the key item is deleted from the source file.
hIntegrityDefaultValueDefault deletion: the linked keys are initialized with their default value 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.
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.
<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 delete: all the linked records are deleted in cascade when the key item is deleted from the source file.
hIntegrityDefaultValueDefault deletion: the linked keys are initialized with their default value 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.
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.
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: 06/04/2024

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