Description
|
Copy a record in type list.
- Open mask of type.
- Select record.
If record doesn't exist:
- Cancel function and return errorcode.
If record exists:
- Copy record.
- Set default values for fields 'dup_fld_nam' of new record.
- User can modify record.
- Field and list triggers are executed.
- Rrecord is saved.
- Return values of return fields.
- Close mask.
|
Input parameter
|
ent_nam
typ_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 default fields |
dup_fld_val
stringlist |
values of default fields |
ret_fld_nam
stringlist |
names of field to return |
|
Output
parameter
|
ret_fld_val
stringlist |
values of field to return |
|
Example
|
Copy a document type record
Input parameter:
ent_nam |
"EDB-DOCUMENT" |
typ_nam |
"DRAWFILE" |
wdg_nam |
"EDB-DOC-DFL-TLI" |
wdg_ext |
"off" |
wdg_mod |
"list" |
act_mod |
"int" |
sel_fld_nam |
"T_DOC_DFL.C_ID" |
sel_fld_val |
"1354657555" |
dup_fld_nam |
"T_DOC_DAT.DOCUMENT_ID" |
|
"T_DOC_DAT.DOC_NAME" |
dup_fld_val |
"dfl005" |
|
"name of dfl005" |
ret_fld_nam |
"T_DOC_DFL.C_ID" |
|
"T_DOC_DAT.C_ID" |
|