Input Parameters | Significance |
DtvLong idm | mask Id |
char *xsl | Sel_Action userexit |
Output Parameters | Significance |
none | - |
Return Code | Significance |
0 | all ok |
1 | zero pointer |
2 | function name not in userexit list |
The Sel_Action userexit is called when a record is selected / deselected in a list or when a record is scrolled to in a form.
Any required application parameters must be passed together with the name of the userexit in *xsl. In order to delete an userexit already set, you must pass an empty string.
The Sel_Action trigger passes a parameter to the set userexit specifying which record has been last selected / deselected in lists or last scrolled into the fields of a form (i.e. is currently visible):
Example: parameter passing in lists:
Example: parameter passing in forms:
Attention! When you select/deselect records in lists, DataView version 4.1-05 or higher does not send any events to the DataView server any longer. For this reason the Select-Action trigger only works in lists when you double-click records. In order to secure compatibility, the new behavior can be controlled with the help of the new client variable DATAVIEW_SACT. The setting ON provides the traditional functionality for old applications, while OFF reduces network load (recommended).
The function automatically invoke any set mask listener function.