LogiView

Command 'select_agg'

     

This command is used to open a virtual widget with the list mask for the specified aggregate relationship, that is used to select records. See also DataView function 'iwf_lis_agg'.

 

If this command is called without transfer string - i.e. 'select_agg( )' only -, the database search is performed in the mask of the currently activated widget. If necessary, the command 'where_ent' is used to set another "parent" for the relational widget..

If the function 'execute' is forwarded the keyword 'choose' in order to open an interactive widget for selecting one or more matching records, this might not be possible if the most recent activated widget does not correspond to the entity 1 of this relational 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_agg({STR_EXPR| })

 

I/O parameters:

{STR_EXPR} Name of entity-2 <space> Name of entity-1 <space> Name of view <space> Name of list mask
-  
 

Return value:

 
-  
 

Example:

  Declaration of Variables
 
70  C Determitation of the project membership of a document
80    select_agg("EDB-DOCUMENT EDB-PROJECT STR")
90    var(PROJ_ID_ARR[1])
100   where_ent("T_DOC_DAT.DOCUMENT_ID"=DOC_ID............")
110   DOCU_INT_1=execute(0)
120   if (DOCU_INT_1==0)
...      ...
200   endif 

Functions and commands: DB/Mask Interface