Description
|
Copy record in an entity list.
- Open mask to entity.
- Check if record exists:
Record does not exist
Record exists
- Copy record.
- Overwrite fields 'dup_fld_nam' of new record.
- Modification of values by user.
- Store record.
- Return values of return fields.
- Close mask.
|
Input parameter
|
ent_nam
wdg_nam
wdg_ext
string |
activate system fields on list {"on", "off"} |
wdg_mod
string |
mode of widget {"list","form","bvb"} |
act_mod
string |
mode of interaction {"int","bat"} |
sel_fld_nam
stringlist |
names of fields for selection |
sel_fld_val
stringlist |
values of fields for selection |
dup_fld_nam
stringlist |
names of fields to write |
dup_fld_val
stringlist |
values of fields to write |
ret_fld_nam
stringlist |
names of fields to return |
|
Output
parameter
|
ret_fld_val
stringlist |
values of fields to return |
|
Example
|
Copy item record
Input parameter:
ent_nam |
"EDB-ARTICLE" |
wdg_nam |
"EDB-ART-SLI" |
wdg_ext |
"off" |
wdg_mod |
"list" |
act_mod |
"int" |
sel_fld_nam |
"T_MASTER_DAT.PART_ID" |
sel_fld_val |
"art002" |
dup_fld_nam |
"T_MASTER_DAT.PART_ID" |
|
"T_MASTER_DAT.PART_NAME" |
dup_fld_val |
"art003" |
|
"name of art003" |
ret_fld_nam |
"T_MASTER_DAT.C_ID" |
|