ui.Dialog.getCurrentItem()

The GetCurrentItem() method is used to retrieve the name of the currently active form item and accepts no parameters. It can return the following values depending on the focus location:

·         the name of the corresponding action, if the program focus is on a button or another item having the ACTION attribute;

·         The name of the current field represented in [tab_name.]field_name format. The tab_name is added to the retrieved value if a FROM clause contains an explicit list of fields. If the dialog uses FROM screen_record.* or BY NAME structures, the prefix is omitted;

·         The screen_array name, if the program focus is in an active DISPLAY ARRAY list;

·         Screen_array.screen_record identifier if the program focus is in INPUT ARRAY list.  In some cases the field name can stay unidentified (e.g., in the BEFORE INPUT block of an INPUT ARRAY statement)