ValueTreeColumnCollection.Insert

Syntax:

Insert(<Index>, <Name>, <Type>, <Title>, <Width>)

Parameters:

<Index> (required)

Type: Number.
Index in a collection of columns where a column needs to be inserted.

<Name> (optional)

Type: String.
Column name.
Default value: Empty string.

<Type> (optional)

Type: TypeDescription.
Object describing value types available for a column. If the parameter is not specified, a value of any type can be stored in the column.

<Title> (optional)

Type: String.
Column heading. Used for visual presentation of the value tree.
Default value: Empty string.

<Width> (optional)

Type: Number.
Column width in characters. Used for visual presentation of the value tree.
Default value: 0.

Returned value:

Type: ValueTreeColumn.
Inserted column.

Description:

Inserts a column in the given position of the value tree column collection.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

TypesArray = New Array;
TypesArray.Add(Type("Number"));
QN = New NumberQualifiers(10,3);
NumericDescription = New TypeDescription(TypesArray,QN);
ContentColumns = ContentTree.Columns;
ContentColumns.Insert(2, "Quantity", NumericDescription, "Q-ty", 14);


    

1C:Enterprise Developer's Community