The platform
The platform, configuration and infobase, metadata, client types, configuration support and external processing.
10 questions
JuniorTheoryVery commonHow does the file mode of an infobase differ from the client-server mode?
How does the file mode of an infobase differ from the client-server mode?
In file mode the whole infobase is one file, 1Cv8.1CD, and each client process works with it directly. In client-server mode the data sit in a DBMS such as PostgreSQL or MS SQL, and server code runs in the 1C:Enterprise server cluster.
Common mistakes
- ✗Thinking file mode has no server context:
&НаСервереcode works there too, run by the client process itself - ✗Choosing file mode for dozens of concurrent users: one shared file serialises their writes
Follow-up questions
- →How do you move a file infobase to client-server mode?
- →Why should code be tested in client-server mode even if it was written in a file base?
JuniorTheoryVery commonWhich kinds of metadata objects does a 1C configuration have, and what are they for?
Which kinds of metadata objects does a 1C configuration have, and what are they for?
Catalogs keep lists such as goods, documents record business events, registers accumulate data, enums fix a set of values, constants hold single settings. Reports and data processors work with the data; common modules hold shared code.
Common mistakes
- ✗Mixing up catalogs and documents: a catalog keeps a list, a document records an event at a date
- ✗Thinking a developer creates database tables by hand: the platform builds them from the metadata objects
Follow-up questions
- →Which tables does the platform create in the database for one document with a table section?
- →When is a constant a better choice than a catalog with one item?
JuniorTheoryVery commonWhat are the platform, the configuration and the infobase in 1C?
What are the platform, the configuration and the infobase in 1C?
The platform is the 1C:Enterprise program itself: the runtime, the database access and the Designer. A configuration is the application built on it: metadata objects, modules and forms. The infobase stores a configuration together with its data.
Common mistakes
- ✗Calling an application such as accounting a platform: it is a configuration that runs on the platform
- ✗Thinking the configuration lives outside the infobase: the infobase stores the configuration and the data together
Follow-up questions
- →Can one platform version run infobases with different configurations?
- →Where do the infobase's data physically live in file mode and in client-server mode?
JuniorTheoryCommonHow does the main configuration differ from the database configuration?
How does the main configuration differ from the database configuration?
The developer edits the main one; users work by the database configuration until it is updated
Common mistakes
- ✗Expecting an edit in Designer to reach users at once: until the database configuration is updated they work by the old one
- ✗Expecting a configuration to hold the users' data: it describes objects and code, while the data sit in the infobase tables
Follow-up questions
- →What does the «Обновить конфигурацию базы данных» command do with the infobase tables?
- →How do you roll the main configuration back to the database configuration, dropping your edits?
JuniorTheoryCommonHow many data tables does the platform create in the infobase for these two catalogs?
How many data tables does the platform create in the infobase for these two catalogs?
2
Open full question →Common mistakes
- ✗Expecting every attribute to get a table of its own: attributes are columns of the catalog's main table
- ✗Expecting all catalogs to share one table: the platform gives each catalog a table of its own
Follow-up questions
- →Which extra table appears when a catalog gets a table section?
- →What happens to the table when a new item is added to the catalog?
MiddleTheoryCommonHow do you change a vendor configuration that is on support?
How do you change a vendor configuration that is on support?
Choose an extension first: it changes behaviour without touching the vendor's code. To change an object itself, enable changes in the support settings and edit as little as possible: every vendor update then needs a manual merge with your edits.
Common mistakes
- ✗Enabling changes and editing vendor objects freely: every later update then needs a manual merge
- ✗Thinking support forbids any change: extensions change behaviour while the configuration stays on support
Follow-up questions
- →What does the comparison and merge window show when a vendor update meets your edits?
- →How do you mark your own edits in vendor modules so that a merge is easier?
MiddleTheoryCommonWhat is a configuration repository, and how does a team work with it?
What is a configuration repository, and how does a team work with it?
A shared store of the configuration for team work in the Designer. A developer captures objects, locking them for the others, edits them and puts them back with a comment. Every version is kept, so a change can be compared or rolled back.
Common mistakes
- ✗Editing an object without capturing it first: the repository rejects the change when it is put back
- ✗Keeping objects captured for days: the rest of the team cannot change them
Follow-up questions
- →How does the repository's object locking compare with branching in Git?
- →Why do many teams move from the repository to 1С:EDT and Git?
MiddleTheoryCommonWhy is a configuration extension often better than editing a vendor configuration?
Why is a configuration extension often better than editing a vendor configuration?
An extension is a separate set of objects and code applied on top of the configuration, so the vendor's objects stay untouched and updates install without a merge. Methods are changed with annotations such as &Перед, &После or &Вместо.
Common mistakes
- ✗Thinking an extension only changes forms: it can intercept methods of modules and add its own objects
- ✗Assuming an extension survives any update unchanged: a vendor change to an intercepted method still needs a check
Follow-up questions
- →How does the annotation
&ИзменениеИКонтрольwarn you that the vendor changed a method you patched? - →Which changes still cannot be made by an extension and need a direct edit?
MiddleTheoryCommonWhat are an external data processor and an external print form?
What are an external data processor and an external print form?
An external data processor is an .epf file outside the configuration, opened in a running base: it adds a feature without changing the configuration. An external print form is such a processor registered as a print command of a document or catalog.
Common mistakes
- ✗Adding a one-off feature to a vendor configuration: an external data processor adds it without changing the configuration
- ✗Thinking an external processor cannot use the base's data: its code runs in the base like any configuration code
Follow-up questions
- →How does the subsystem «Дополнительные отчеты и обработки» register an external print form?
- →Why can opening an arbitrary external data processor be a security risk?
MiddleTheoryCommonHow does the thin client differ from the thick client and the web client?
How does the thin client differ from the thick client and the web client?
The thin client shows only managed forms and reaches the data through server calls. The thick client also runs ordinary forms and works with infobase objects on the client. The web client needs no install: managed forms run in a browser.
Common mistakes
- ✗Expecting the thin client to read infobase objects on the client: it gets data only through server calls
- ✗Writing new forms as ordinary forms for the thick client: new configurations use managed forms in every client
Follow-up questions
- →Why does the same managed form work unchanged in the thin client and the web client?
- →What limits does running in a browser put on client code in the web client?