Using the details of the string type

1C: Enterprise 8.2 /
For developers /
Creating and modifying metadata objects

Table of contents

see also

1.1. For string type details, use the variable length of the string (the property Allowed length = Variable ) and, at the same time, specify the maximum allowable length of the string. The Allowed length property can take the Fixed value only in those cases when, when manipulating this data, it is really necessary to have a guarantee that the string has a certain length (due to automatic addition with trailing spaces).

1.2 In cases where the maximum length of a string is known in advance (for example, it is regulated), it should be indicated in the Length property (or the name Length for the standard props Name ). For example, the length of the string props of the TIN of the directory PhysicalPerson should be 12 characters.

1.3. If a string is a concatenation of other strings, then its length can be defined as the sum of the lengths of the source strings. For example, the length of the address representation must be equal to the sum of the lengths of the fields in which parts of the address are stored.

1.4 If the length of the string is not regulated, it is recommended to choose a length that is sufficient for storing data in most cases. For example, in the overwhelming majority of cases, 250 characters are enough to store the full name of the counterpart, the maximum length of the file name in most file systems is 260, the full name of the individual is 100, and so on.

2. In some cases, it is allowed to use strings of unlimited length:

2.1. It is assumed that the custom text can be placed in the string type attribute, the volume of which can be significant. As a rule, these are multi-line fields on form . For example, in the field Additional description in the sales order, the manager may place the entire history of correspondence with the client, in the field Comment - user can enter arbitrary multi-line text, etc.

2.2. The string requisite stores various technical information that is generated by programs and, most often, is not intended to be read by the user, but is used in various information processing algorithms. For example, xml-documents, e-mail headers, etc.

3. In the case of using string details of unlimited length, one should keep in mind the limitations arising in this way in the query language:

3.1 If you need to compare values, group and get different, such details must be expressed as a string of a certain length, such that the expression is calculated correctly.

For these purposes in the request it is recommended to use the construction

EXPRESS HOW LINE (1000)

3.2. In the ACS reports for such fields, you should instead set the parameter Type of field value (on the Data Sets tab).

It should be borne in mind that frequent reduction of an unlimited string to a certain length in requests and reports of ACS can be a sign of an incorrect design decision and serve as a signal for revising the type of string props in favor of a limited length of string.

3.3. In other cases, you do not need to trim the string in queries.

4 .1. If the display forms provide a string field display, then no matter what the length of the string is assigned, it is necessary to ensure the output of such lines completely, without cutting off part of the string. Otherwise, much of the information may be lost. For example, the house and apartment number in the field with the delivery address of the goods in printed form.

  • To quickly identify all string properties of unlimited length in the configuration, you can use the attached String processing of Unlimited Length.erf
  • Plate formation
  • Restriction on the use of the design " COMBINE ALL "in requests

Other materials on the topic:
combine all , to combine , comment , arbitrary , display , groupings , formation , line , requisites , lines , clipboard , copy , user , using , information , directory , name , configuring , props , example , on the tab , counterparty , directory , report , configurations

Materials from the section: 1C: Enterprise 8.2 / Developers / Creating and modifying metadata objects

Other materials on the topic:

System-wide mechanisms and principles

Data sources for budgeting calculations

Description of procedures and functions

Name, synonym, comment

Using logical OR in query conditions


They find us: in the request two text requisites in the field , 1c grouping by string details , combine everything in the request 1c of unlimited length, 1c line of unlimited length than bad, 1c line of unlimited length use, specify the maximum permissible length of the line, lines of unlimited length 1c 8 2 , String of unlimited length 1s 8 2, ACS and string of unlimited length, Properties of objects 1C length limit 25 characters


1C: Enterprise 8

Добро пожаловать , Гость !

Мы настоятельно рекомендуем Вам зарегистрироваться, если вы ещё этого не сделали. регистрация откроет Вам новые функции.

Войти или Зарегистрироваться

www.silvio-berluskoni.ru © Все права защищены © 2016.