Event Data List

The event data list is used to create and manage all keyboard events of the application. Each key-code can be differently assigned. The assignments can be different for the DataView system states. User-specific assignments are possible. Unknown key codes can be detected by pressing the key.


In the Event Data list you can:


System Events

The events for DataView itself belong to the user SYSTEM and are displayed in the event list. These event records cannot be deleted and are automatically also effective in the application. If such an event is to be assigned to a different function, this is only possible by copying the record to another user (e.g. user GLOBAL). The original system function will then not be available to the new user in the application any longer.


Fields and Functions

Key name of the key-code
Shift hot-key for dual assignment of keys
Status system state for key function
User user for keys function
Action function to be executed
Parameter parameter for function

Detect Key detects the event records for the key pressed
Reconfigure updates the event table in main memory

Key

Name of the key-code

attribute master attribute for event (T_EVENT)
type, entry string, entry required
max. no. of characters 7
selection tool menu with all key-codes
multilingual field no

The key-code can be entered via the selection menu or by pressing the desired key. In order to enter the key-code directly, the field must be left empty, first. After the request in the message window the desired key can be pressed.

Several records with the same key-code can be entered in order to assign a function to the key in the different system states (status field), user-specifically (field user) or dual (Shift flag).

The notation of the key-codes corresponds IBM compatible standard keyboard.

Shift

Hot-Key for dual assignment of keys

attribute master attribute for event (T_EVENT)
type, entry logical
max. no. of characters 1
selection tool no
multilingual field no

Set the flag when you want to create a hotkey like SHIFT+....

Status

System state of the user interface in which the key function is effective

attribute master attribute for event (T_EVENT)
type, entry string, entry required
max. no. of characters 7
selection tool menu with all system states
multilingual field no

Entry:

ALL
all system states

WDG
widget state, the system is in widget state if a mask is active.

SEL
element-selection state, the system is in element-selection state if elements are selected in the mask.

MAS
mask-edit state, the system is in mask-edit state if records are being edited in a mask.

More information: -> System states for events

User

Name of the user for key function

attribute master attribute for event (T_EVENT)
type, entry string, entry required
max. no. of characters 20
selection tool menu with existing users (including user GLOBAL)
multilingual field no

The keyboard function can be assigned user specifically. The selection of the user GLOBAL means, that the key function is available for all users.

Action

Name of the function to be executed

attribute master attribute for event (T_EVENT)
type, entry string, entry required
max. no. of characters 20
selection tool menu with all key functions (differentiated for macros or menu /event userexits)
multilingual field no

The function to be executed can be a userexit function or a macro.

Entry:

event macro
Event macros mainly control cursor movements or object shapings on the user interface (e.g. change write-cursor position in mask-edit state or iconify mask). It must be considered that macros can only be efficiently used in certain system states.

userexit function
Userexits mainly control the dialog flow in the application (e.g. open a certain mask). Thus key functions can be assigned for experienced users as an alternative for menu- or button functions. All menu/event userexits or even individual userexits are available. A userexit can request parameters (field parameter).

more information: -> Event-Triggers, -> List of event makros, -> Liste of standard menu userexits

Parameter

Parameter for userexit functions

attribute master attribute for event (T_EVENT)
type, entry string, entry optional
max. no. of characters 2000
selection tool no
multilingual field no

The parameter entry depends on the selected userexit function.

Detect Key

Detects the event record for a key pressed.

Using this function the corresponding key-code can be easily detected for keys and key combinations. After the key has been pressed all corresponding event records are displayed in the list.

Reconfigure

Updates the copy of the event in main memory.

Newly created or modified events must be updated in main memory before they become effective for the application.

Alternatively DataView can be restarted.