f$WatchDT (f$KontrollET)
f$WatchDT (f$KontrollET)
Assign a DT to a special parameter. This logic is called every time a value is modified in the relevant parameter. The decision table cannot have any arguments or return value either.
This logic is activated using the f$ActWatch function. In the DT, you can, for example, write a log file or display the changed value in a dialog to more easily find possible errors in the logic.
Furthermore, this function is applied in order to be able to directly react to value changes in a dialog field. The monitoring DT is activated in this instance through the property for checking the relevant dialog field, instead of by f$ActWatch.
Please note: the parameter name (and also the DT name) are usually given as string constants, i.e. in quotation marks. If a string parameter is entered - like in the syntax description - then the value of the parameter entered is considered as the parameter name (as long as it is a string).
Please note: it is not possible to set various Watch-DTs to multiple indices when using an indexed parameter. The last definition applies for such attempts.
e.g. :
f$WatchDT(’Para[1]’,’DTName1’)
f$WatchDT(’Para[2]’,’DTName2’)
When modifying any index in the Para array, DTName is always called.
Syntax: | f$WatchDT( ParaName, DTName ) | ||
| Argument | Type | Meaning |
| ParaName | String | Parameter to be monitored |
| DTName | String | Decision table to be called The name can also be entered in the form p$meineEt(). |
Result: | - |
| |
Example: | f$WatchDT( 'Ident', 'TstIdent' ) | ||
Related functions:
f$ActWatch | Activate the Watch-DT for a parameter |
f$DeactWatch | Deactivate the Watch-DT for a parameter |
f$Dialog | Call a screen dialog |