Download the program xml for uploading files. The process of uploading data to xml. Can I place multiple batch uploads for different types of ads?

When you manage several 1C operating databases, you sometimes need to exchange data between them. There are 2 ways to transfer data:

  1. Data transfer using exchange and processing rules "XML data exchange". Exchange rules are created using the 1C configuration: Data conversion.
  2. Transferring data between similar information bases by processing "Uploading and loading XML data".

Consider the second option, i.e. uploading and downloading data from / to configurations that have the same (identical) objects we need. To do this, we use the external processing "Upload and download XML data", which you can.

Tools for creating unloading

First, enter. You immediately see that in this case the workload is much greater. Additional properties allow us to define a "callback" function so that we can perform appropriate operations on the returned data or handle the situation when something goes wrong. At this point, you should pay attention to access to the data. Thus, you can much more control what you are doing, not to mention that this is a more elegant way.

The file formats that you see vary depending on the type of sheet that is active in your book.

  • In the "Positions" area, select the place where you want to save the book.
  • In the Save As dialog box, navigate to the desired location.
  • In the File type list, select the type of file you want.
  • Click the arrows to scroll through the file formats that are not displayed in the list.
  • NOTE.
  • In the "File name" field, accept the proposed name or enter a new name for the workbook.
If you save the book in any text format, the formatting will be lost.

The condition for using this processing is the following: In the information base from which the data is uploaded, the same objects must exist with the same requisites (name and data type) as in the database into which the data is downloaded.

Let's consider an example with data transfer by this processing. Suppose, you need to transfer the documents "Payment order incoming" and "Payment order outgoing". The solution of this problem will be as follows.

Open the external processing "Download and upload XML data" through the main menu: File? Open ... On the "Unload" tab, we specify xML file, in which we will store the data.


Then you need to specify the period for which we will upload data objects from the 1C database and the objects themselves. Documents we need for the upload are marked with a tick in the structure field of the configuration objects in the column "Data for upload." If in the uploaded documents there are links to the elements of directories that are not in the other configuration, then it makes sense to tick the "If necessary" column so that these elements are also unloaded along with the documents.


Now at this step it is necessary to decide whether to unload along with the documents their movements in registers or to re-translate these documents already in another database? To redirect the uploaded documents already in another database, you can use the processing "Group processing of directories and documents". If the algorithms in the information databases are somewhat different, then the checkbox "Do not upload all documents with the document" should not be ticked.

That's all, the unloading setup is over, everything is simple! We press the button "Upload data" and wait until the data is saved in the XML file. For more complex unloads, you can set the selection for the uploaded objects not only by period.

After unloading, go to the second base of 1C and open the same processing there. Go to the "Download" tab and specify here the same XML file into which we uploaded the data.


In this tab, we put one single tick in front of "Continue loading objects in case of an error" and click on the "Download data" button. Other functions, for example, the use of totals, we do not consider, although this function can significantly speed up the loading of objects (records by registers).

Modes of operation

Processing UnloadDownloadData XML82 implements 2 modes of operation: Uploads (creating the upload file specified by the user data) and Downloads (reading the upload file created by the same mode and writing the data in it). Set the mode by selecting in the Mode field.

Before starting a particular mode (clicking the Run button), you must specify the name of the upload file either by entering it manually in the "File name" field, or by using the field selection button and the standard file selection dialog.

In the download mode, you can edit the use of totals when writing registers, which can affect the download speed. The "Disable Totals" and "Enable Totals" buttons are available when the "Enable the use of totals editing during data download" option is selected and is used to manually control the mode of using totals when downloading data. ** Processing conditions **

Processing can be used only in cases when the information base in which the data was downloaded and the one in which the data is downloaded are homogeneous (the configurations are identical, the data may vary), or all the uploaded objects are almost completely identical in composition and types of details and table parts, the properties of the "leading" metadata object, and so on. It should be noted that, in connection with these limitations, processing is primarily intended for exchange between homogeneous IS.

The format of the upload file differs from the file format created when unloading on the exchange plan, the header part. To unload data (directory elements, register records, etc.), the same XML serialization mechanism is used for processing, as well as uploading via the exchange plans, in this part the file formats are identical.

Determination of the unloading composition

Processing allows to carry out both complete and partial upload of the data base information to a file. The configuration of the uploaded data is done in the dialog by selecting the check boxes in the tree column that displays the metadata objects whose data can be uploaded. The additional column of checkboxes, "If necessary," establishes the need to download objects of this type "by reference". That is, if the flag is set only in the "If necessary" column, then the data for such an object will not be fully downloaded, but only to the extent necessary to maintain referential integrity in the information database that will download the upload file.

When you open the form, processing sets the sign of unloading by reference to all objects, which guarantees the referential integrity of the unloaded fragment of the information database.

When you click on the "Define objects that are uploaded by link" button, the analysis analyzes the links to what data can be contained in objects that have the sign of full unloading and automatically fills in a column of checkboxes indicating the need for downloading by reference. If the object already has the full unload option checked, then the download link check box is not set.

Possible Applications

Use of this processing is possible, for example, to create a complete or partial backup  data, data exchange between information bases, and also as an auxiliary tool for restoring problem information databases.

Continuing the theme:
Android

It's hard to say which model of the smartphone is the most popular and high-quality. Someone likes to use phones that run on the Android operating system, and someone ...