When a record script is triggered by a form control, IBM Rational ClearQuest passes the record script an EventObject object as its parameter. qui contient des informations concernant le type d'événement intervenu. Différents contrôles peuvent générer différents types d'événement (clics sur des boutons, sélection d'éléments, etc.). Vous devez utiliser les informations de l'objet EventObject pour déterminer la façon dont l'événement doit être traité.
Rational ClearQuest generates the following types of events for form controls:
The following table lists the supported type of event for each control and the extra information provided by the EventObject. The constants listed under the supported event type column are part of the EventType constants enumerated type.
Type de contrôle | Type d'événement pris en charge | Informations supplémentaires |
---|---|---|
Bouton de commande | _BUTTON_CLICK | Chaîne vide |
Zone de liste déroulant | _CONTEXMENU_ITEM_SELECTION | Chaîne vide |
Boîte à liste déroulante | _CONTEXMENU_ITEM_SELECTION | Chaîne vide |
Zone de liste | _CONTEXMENU_ITEM_SELECTION | Valeur de zone sélectionnée |
Vue liste | _CONTEXMENU_ITEM_SELECTION | Current field value selected |
Zone de texte | _CONTEXMENU_ITEM_SELECTION | Current field value selected |
Zone de liste déroulante fixe | _CONTEXMENU_ITEM_SELECTION | Chaîne vide |