Returns the list of triggers applied to one or more HFSQL data files.
Reminder: A trigger is a WLanguage procedure automatically called whenever one or more HFSQL functions are run. See
Managing the triggers for more details
Versions 18 and later
New in version 18
Versions 21 and later
New in version 21Remark: From version 19, HFSQL is the new name of HyperFileSQL.
// Retrieve triggers applied to Customer and Product data files
ListTriggers is string
ListTriggers = HListTrigger("Customer,Product")
// Adds the list of triggers into COMBO_COMBO1
ListAdd(COMBO_COMBO1, ListTriggers)
Syntax
<Result> = HListTrigger([<Name of files>])
<Result>: Character string
List of triggers applied to the specified data files. The different triggers are separated by CR characters (Carriage Return).
The list has the following format:
<Data file> + TAB + <WLanguage procedure> + TAB +
<HFSQL function> + TAB + <Type of trigger> +
TAB + <Trigger status> + CR +...
| |
<Data file> | Name of the data file to which the trigger applies. |
<WLanguage procedure> | Name of the WLanguage procedure called by the trigger. |
<HFSQL function> | HFSQL function onto which the trigger applied. |
<Type of trigger> | - "A" for a "BEFORE" trigger (the procedure associated with the trigger is run before the HFSQL function of trigger).
- "P" for an "AFTER" trigger (the procedure associated with the trigger is run after the HFSQL function of trigger).
|
<Trigger status> | |
<Name of files>: Optional character string (with quotes)
Name of one or more data files. If this parameter is not specified, the triggers of all the data files found in the analysis associated with the current project will be listed.
To specify several names, the names of the data files must be separated by a comma (",").
Remarks
Compatibility with the earlier versions
The following syntax is kept for backward compatibility:
<Result> = HListTrigger([<File name> [,<Full WDD name>]])
The <Full WDD name> parameter is kept for backward compatibility. This parameter is ignored.
Business / UI classification : Business Logic