CustomFields.Add

Syntax:

Add(<Name>, <Representation>, <Type>, <TheListOfAllowedValues>)

Parameters:

<Name> (required)

Type: String.
Field name.

<Representation> (required)

Type: String.
Field representation.
If not specified, then is obtained from the <Name> parameter.

<Type> (optional)

Type: TypeDescription.
Field type.
Default value: Arbitrary.

<TheListOfAllowedValues> (optional)

Type: ValueList.
The list of possible values for a field.

Returned value:

Type: CustomField.

Description:

Adds field to collection.

Availability:

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

    

1C:Enterprise Developer's Community