ui.Dialog.getCurrentItem
Returns the current item having focus.
Syntax
getCurrentItem()
  RETURNS STRING
Usage
The getCurrentItem() method returns the name of the current form
item having the focus.
- If the focus is on an action view (typically, a 
BUTTONin the form layout),getCurrentItem()returns the name of the corresponding action. If several action views are bound to the same action handler with a unique name, there is no way to distinguish which action view has the focus. -  If the focus is in a simple field controlled by an 
INPUTorCONSTRUCTsub-dialog,getCurrentItem()returns the [tab-name.]field-name of that current field. The tab-name prefix is added if aFROMclause is used with an explicit list of fields. No prefix is added ifFROM screen-record.*is used or ifBY NAMEclause is used. - If the focus is in a list controlled by a 
DISPLAY ARRAYsub-dialog,getCurrentItem()returns the screen-array name identifying the list for a regularDISPLAY ARRAY. If theDISPLAY ARRAYis defined with theFOCUSONFIELDattribute, the method returns screen-array.field-name. - If the focus is in a field of a list controlled by an 
INPUT ARRAYsub-dialog,getCurrentItem()returns screen-array.field-name, identifying both the list and the current field. In some context, the current field is undefined. For example when entering theINPUT ARRAYsub-dialog,getCurrentItem()will return the screen-array only when in theBEFORE INPUTcontrol block.