#

# LogiView

## Functions and Commands

| ## Editing Masks
| The following functions are available to edit masks:
mode | {STR_VAR}= mode() This function returns a string with the short name of the current mode of operation.
par | {STR_VAR}= par() This function returns a string with the standard parameters forwarded from DataView to Action Userexits.
ret_father_cid | {INT_VAR}= ret_father_cid({WDG_ID}) This function returns the internal C_ID of the parent element for the specified widget.
row | {STR_VAR}= row() This function returns the line number from the current mask.
row_copy | row_copy ({WDG_ID}, {ROW}, {WDG_ID}, {ROW}) This command is used to copy the specified line of the source widget to the specified line of the target widget, i.e in the target widget a blank line is inserted at the specified location and the source line is inserted.
row_count | {INT_VAR}= row_count({WDG_ID}) This function returns the number of existing records (lines) in the specified widget. This function could be compared with the function 'mas_ret_len_rec' of the DataView programming interface.
row_delete | row_delete ({WDG_ID}, {ROW}) This command is used to delete the specified line in the specified widget.
row_insert | row_insert({WDG_ID},{NUM_EXPR}) This command adds a blank line to specified position in the widget.
row_select | row_select({WDG_ID},{0|ROW}) This command is (de-)selects either one or all records (lines) of the specified widget. This command could be compared with the function 'mas_set_drt_rec(...,'+')' of the DataView programming interface.
row_ret_limit | {INT_VAR}=row_ret_limit({WDG_ID}) This function returns the maximum number of possible records (lines) for the specified widget (mask limitation).
row_set_limit | row_set_limit({WDG_ID},{NUM_EXPR}) This command is used to specifiy the maximum number of possible records (lines) for the specified widget (mask limitation).
set_father_cid | set_father_cid({WDG_ID},{NUM_EXPR}) This command is used to set the internal C_ID of the parent element for the specified widget.
virtual | virtual({TRUE|FALSE}) This command is used to set the virtual DataView mode. When the virtual mode is set, all widgets are opened as virtual (hidden) widgets.
virtual_mode | {LOG_VAR}= virtual_mode () This function checks if the virtual mode is set.
widget_id | {INT_VAR}= widget_id() This function returns the ID of the current widget.
widget_activate | widget_activate({WDG_ID|0}) This command is used to activate a (virtual) widget.
widget_close | widget_close({WDG_ID|0}) This command is used to close the specified widget. This function could be compared with the function 'wdg_del_wdg' of the DataView programming interface.
widget_get_buf | widget_get_buf ({WDG_ID}, {STR_EXPR}, {VAR}) This command is used to read the value stored for the specified key for the specified widget from the buffer. There is no output if no value is found.
widget_id_fat | {INT_VAR}= widget_id_fat ({WDG_ID}) This function returns the widget Id for the forwarded Id of a child widget in a combined form.
widget_id_son | {INT_VAR}= widget_id_son ({WDG_ID}, {STR_EXPR}) In a combined form this function returns the ID of the child widget to the forwarded parent widget and the mask name of the child widget.
widget_name | {STR_VAR}= widget_name ({WDG_ID}) This function returns the mask name to the specified widget.
widget_set_buf | widget_set_buf ({WDG_ID}, {STR_EXPR}, {EXPR}) This command is used to enter the forwarded value below the specified key in the buffer of the specified widget.
widget_top | {INT_VAR}= widget_top() With the special mask name "TOP" a not-freely positionable mask can be linked to the Top Button Bar.