#

# LogiView

## Command 'select_ent'

| This command is used to open a virtual widget with the list mask for the specified entity, that is used to select records. See also DataView function 'iwf_lis_ent'.
| If this command is called without transfer string - i.e. 'select_ent( )' only -, the database search is performed in the mask of the currently activated widget. Calling the 'var' command specifies the variables to be assigned. Without this command only the number of matching records is returned (to the function 'execute').
| This command must not be called with a conditional instruction.
| The nested use of commands may lead to problems. This is the case when exactly the same parameter strinb is used. Example
| ### Syntax:
| select_ent({STR_EXPR| })
| ### I/O parameters:
| {STR_EXPR} | Entity name [<space> Name of list mask]
| - |
| ### Return value:
| - |
| ### Example:
| Declaration of Variables
     10 select_ent("EDB-RESOURCE")
     20 where("T_RSC_DAT.REF_VALUE"=user())
     30 DOCU_INT_1 = execute(0)
     40 if ( DOCU_INT_1== 0 )
     ..   ..
     90   endif
| Result:
| This procedure is used to check if a certain resource (in this case: user) was created.
| Functions and commands: DB/Mask Interface