#

# LogiView

## Functions and Commands

| ## Editing Fields
| LogiView provides the following functions to edit fields:
field_get_buf | field_get_buf ({WDG_ID}, {FLD}, {STR_EXPR}, {VAR}) This command is used to read the value stored for the specified key from a specified field.
field_name | {STR_VAR}= field_name () This function returns the name of the current field.
field_read | field_read({WDG_ID},{FLD},{ROW},{VAR}) This command is used to read the contents of a mask field. This command could be compared with the function 'mas_rea_fld' of the DataView programming interface.
field_ret_qry | {STR_VAR}= field_ret_qry({WDG_ID},{FLD}) This function is used to read the contents of the query buffer of a mask field.
field_set_acc | field_set_acc({WDG_ID},{FLD},{"m"|"w"|"r"}) This command is used to set the (interactive) access to a mask field. This command could be compared with the function 'mas_fld_set_acc' of the DataView programming interface.
field_set_buf | field_set_buf ({WDG_ID}, {FLD}, {STR_EXPR}, {EXPR}) This command is used to enter the forwarded value below the specified key in the buffer of the specified field.
field_set_menu | field_set_menu ({WDG_ID}, {FLD}, {STR_EXPR}) Sets a selection menu for the specified field. If the menu is not available yet, it is loaded now.
field_set_qry | field_set_qry({WDG_ID},{FLD},{EXPR}) The command 'field_set_query' is used to enter a selection value in a mask field.
field_title | EP_STR = field_title(WDG, "T_MASTER_DAT.PART_ID") The function 'field_title' returns the field title of the specified field in the respective mask.
field_touched | {LOG_VAR}= field_touched () This function can be used to check if the cursor has been set into the current field.
field_write | field_write({WDG_ID},{FLD},{ROW},{EXPR},{STR_EXPR}) This command is used to write information to a mask field.
widget_fields | {INT_VAR}= widget_fields ({WIDGET_ID}, {STR_VAR}, {STR_EXPR}) or {INT_VAR}= widget_fields ({WIDGET_ID}, {STR_VAR}) This function returns the names of all fields of the specified widget. The result of this function is the number of assigned field names.