How To Create External Processing

Table of contents:

How To Create External Processing
How To Create External Processing

Video: How To Create External Processing

Video: How To Create External Processing
Video: How to set up an external effects processor for live sound 2024, December
Anonim

The 1C: Enterprise program is one of the most popular applications used for accounting in enterprises. In this program, you can create external processing that has its own layout, as well as a pass argument containing a reference to the configuration metadata object.

How to create external processing
How to create external processing

It is necessary

Administration skills "1C: Enterprise"

Instructions

Step 1

Launch the 1C: Enterprise program to do external processing in the Configurator mode. Add to the processing the "Object reference" attribute, which has the value type of the configuration object, for which you will connect an external printable. To make it easier to debug the code, create a screen form, insert an "Input field", link it to the "Object link" attribute.

Step 2

Create your own layout in processing, you can also use the general configuration layouts, or copy the already prepared one. In the field "General module of the object" of processing, create a mandatory function "Print / Export", which will be called using the standard mechanism of the dialog box for selecting printable forms. This function returns a table document type attribute.

Step 3

For this, use the example of the source code of the function posted on the site https://www.cfdt.ru/?globalNav=1&section=5&page=4. Create two functions similar to those used to design typical operations. For example, a function that generates a structure of values that is used to automate data entry into a spreadsheet document layout. Include in it the execution of all necessary queries, as well as the solution of calculation problems when creating an external processing.

Step 4

Make a function that will create a spreadsheet document and fill the layout with information from the "Print settings" structure. Note that you can convert any report that exists in the configuration to external processing.

Step 5

You can also compare and merge existing treatments and reports. You can start external processing both from the 1C: Enterprise program and by opening it as a regular file stored on your computer's hard disk. It will work in the same way as the one included in the application solution.

Recommended: