Help / WLanguage / Managing databases / HFSQL / Managing triggers / WLanguage functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Re-enables a trigger that was disabled by HDeactivateTrigger.
Reminder: A trigger is a WLanguage procedure automatically called by the HFSQL engine whenever an HFSQL function is run. A trigger is defined by HDescribeTrigger.
<Result> = HActivateTrigger([<List of HFSQL data files> [, <List of HFSQL functions>]] [, <Type>])
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurs. HError is used to identify the error.
<List of HFSQL data files>: Optional character string
Logical name of one or more HFSQL data files.
To specify several names, the names of the data files must be separated by a comma (","). To use all the data files found in the analysis, this parameter must be equal to "#STAR#".
By default, <List of HFSQL data files> = "#STAR#".
<List of HFSQL functions>: Optional character string
Name of one or more HFSQL functions on which the trigger must be implemented. To specify several names of functions, the names of functions must be separated by a comma (","). You have the ability to define triggers on the following HFSQL functions:If <List of HFSQL functions> is set to "#STAR#", all the HFSQL functions used to activate a trigger are taken into account.
By default, <List of HFSQL functions> = "#STAR#".
<Type>: Optional Integer constant
Indicates the type of trigger. All triggers are affected if this parameter is not specified.
hTriggerAfterThe procedure is run after the HFSQL function
hTriggerBeforeThe procedure is run before the HFSQL function
Business / UI classification: Business Logic
Component: wd280hf.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help