TableBox.CopyRow

Syntax:

CopyRow()

Description:

Copies the table box current row, similar to the "Add by cloning" command.
If the table box is linked to a values table or tree, this method adds a copy of current row to the values table or tree, similar to the corresponding methods of these objects.
If a table box is linked to a list of objects that are stored in the database, the method starts editing a new object, a copy of the current one. (For example, objects list in the form of document or catalog list).
If a table box is linked to a record set or a tabular section the method starts editing a new record, a copy of the current one. (For example, records list in the form of information register list; document or catalog tabular section).

Availability:

Thick client.

Note:

If a table box is linked to a record set of information register new records can be outputted manually only if "Independent" write mode is specified for the register (specified during configuring). If a record set belongs to an accumulation register, or "Subordinate to recorder" write mode is set for information register you can not add manual records.

Example:

Controls.TableBox.CopyRow();

    

1C:Enterprise Developer's Community