Description
|
- Opens mask for entity.
- Opens mask for relation.
- Pre-selection according to search criteria.
- If necessary further interactive selection and select the respective
data records for the user.
- In the interactive mode, additional check fields can be specified
('chk_fld_nam'). Before return to the client it is checked if the selected
data records correspond to the review conditions. If permission is denied,
the user has to select other data records or the function is cancelled.
- Returns the number of selected data records and their C_IDs.
- If the 'widget-remain' flag is "on", the mask is not deleted
after closing the function and another call with eci_sel_rel accesses
the same mask.
 |
When calling the mask with this function, it is possible to
add another select or noselect menu temporarily to the type mask
with the function eci_set_mas_men.
The respective entries in the menu table are:
- EDB-ECX-SEL-SLS and EDB-ECX-SEL-NOS
- and related entries in the SELECTION table:
- Selection to CAD: EDB-ECX-SEL with parameter eci_sel_ret
- Back to CAD: EDB-ECX-BRK with parameter eci_sel_abo
|
|
Input parameter
|
fat_ent_nam
string |
Name of entity 1 ("Parent") |
fat_wdg_nam
string |
Mask name of entity 1 |
fat_wdg_ext
string |
Activate system fields in the mask of the entity 1
{"on", "off"} |
fat_wdg_mod
string |
Mask type of entity 1 {"list","form","bvb"} |
act_mod
string |
Type of interaction {"int","bat"} |
fat_sel_nam
stringlist |
Field name for selecting the parent data record |
fat_sel_val
stringlist |
Field values for selecting the parent data record |
son_ent_nam
string |
Name of entity 2 ("Son") |
rel_vie_nam
string |
View name of relation |
rel_ref_agg
string |
Type of reference {"ref", "agg"}
|
rel_wdg_nam
string |
Name of reference mask |
rel_wdg_ext
string |
Activate system fields at reference mask {"on",
"off"} |
rel_wdg_mod
string |
Type of reference mask {"list","form","bvb"}
|
wdg_remain
string |
Flag if mask is deleted {"on", "off"} |
sel_fld_nam
stringlist |
Field names for selecting the reference |
sel_fld_val
stringlist |
Field values for selecting the reference |
chk_fld_nam
stringlist |
Field names for check |
chk_fld_val
stringlist |
Field values for check |
|
Output
parameter
|
num
string |
Number of data records found |
ret_rel_cid
stringlist |
Reference-C_IDs of selected data records |
ret_son_cid
stringlist |
Master-C_IDs of the selected child data records |
|
Example
|
Selecting item-document records
Inpit parameters:
fat_ent_nam |
"EDB-ARTICLE" |
fat_wdg_nam |
"EDB-ART-SLI" |
fat_wdg_ext |
"off" |
fat_wdg_mod |
"list" |
act_mod |
"int" |
fat_sel_nam |
"T_MASTER_DAT.PART_ID" |
fat_sel_val |
"art 001" |
son_ent_nam |
"EDB-DOCUMENT" |
rel_vie_nam |
"STR" |
rel_ref_agg |
"ref" |
rel_wdg_nam |
"EDB-ART-DOC-RLI" |
rel_wdg_ext |
"off" |
rel_wdg_mod |
"list" |
wdg_remain |
"off" |
sel_fld_nam |
"T_MASTER_DOC.POS_NO" |
sel_fld_val |
">0" |
chk_fld_nam |
"" |
chk_fld_val |
"" |
|