# Enterprise Communication Interface (ECI)

## eci_loa_cax (DFM)

### Description
Opens the widget to select documents in interactive mode. Among others, the ECI function returns the structure ID which is used to identify the entries in the temporary tables. With context menu selection "Selection to CAD" following actions are performed for each selected record calling the LogiView procedure "EP_DFM/DFM_SELECTION_CAD": In a DFM environment this LGV asks the user if non-local files should be replicated immediately, in batch mode or to cancle the function. Afterwards "eci_sel_ret" is called for all records with local files. If no record can be found with local files, "eci_sel_abo" is called. "eci_sel_ret" itself calls a function which calls the stored procedure filling the temporary tables "T_CAX_STR_TMP" and "T_CAX_FIL_TMP" for each selected record.
### Input parameter
cpEntNam
string | name of entity
cpTypNam
string | name of type
cpMasNam
string | name of list
cpMasExt
string | flag if list extension switch on/off
cpWdgMod
string | widget mode (list/form/bvb)
cpActMod
string | action mode (int/bat)
cpWdgDel
string | flag if widget is deleted (=off) if it remains on screen (=on)
cpResFlag
string | reservation flag: Off: all selected records are loaded. On: record will be reserved and loaded if record is reserved by other user function returns error noask - records will be reserved and loaded, already reserved records are loaded, too. Ask: records will be reserved and loaded, already reserved record is asked for loading. Stay: records will be reserved and loaded, if record is already reserved by other user, user has to select other records or end function. Options ask/stay are only available in interactive mode.
cpaSelFld
stringlist | names of fields to select
cpaSelVal
stringlist | values of fields to select
cpaChkFld
stringlist | names of fields to check
cpaChkVal
stringlist | values of fields to check
cpRetChk
string | return only if: "" or 'T': return from any type widget with rel=cpTypNam 'E': return from any type/relation widget with entity2=cpEntNam or entity widget with entity1= cpEntNam 'ET': return from any type widget with rel=cpTypNam or from any entity/relation widget with entity2=cpEntNam 'off': return always
cpMasLimit
string | flag if mask limit should be valid or not (on/off) - only in batch mode!
cpCreSystem
string | CAx-system
cpLogicType
string | logic type
cpStructure
string | {y|n}: perform document structure (yes|no)
cpBomFunc
string | function name for bom
####
### Output parameter
cpRecNum
string | number of selected records
cpaCaxFilTmp
stringlist | number of records in T_CAX_FIL_TMP for each selected
cpaCaxStrTmp
stringlist | number of records in T_CAX_STR_TMP for each selected
cpaStructId
stringlist | structure-ID for each selected
cpaErrCode
stringlist | return codes of xfile_loa_cax_str for each selected
cpaDfmLocal
stringlist | {y|n} flag if all files are local
cpaRetStoPro
stringlist | return codes of stored procedure