ValueTreeColumnCollection.Add

Syntax:

Add(<Name>, <Type>, <Title>, <Width>)

Parameters:

<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.

Description:

Adds a column to the end of the collection of value tree columns.

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.Add("Count", NumericDescription, "Count", 14);


    

1C:Enterprise Developer's Community