NOTE: This page has been translated automatically from Russian to English. Original page.
Undocumented use of standard treatments from the "All functions".
In the 1C company has a very comfortable standard features:
1. Active users;
2. The log;
3. Search for references to the object;
4. Conduct documents;
5. Deleting marked objects;
6. Manage external data sources;
7. Manage the outcome;
8. Manage full-text search;
9. Manage the configuration extensions;
However, nowhere describes the options of their use except for the call from "All functions" main menu. So sometimes there is an opinion that these features are something specific and complicated that they are generally not written in the 1C and C ++ as well as the platform itself.
In fact, technically, these functions are the most common treatments 1C included in the platform, and they can be used completely like any other usual treatments.
Consider a few ways to use the example of standard processing "Search object references".
1. Call the standard treatment of any menu item. Processing "Search object references" is convenient and can be useful to ordinary users. However, not always possible to give them access to the menu "All functions" because of limited user access level. In this case, you can add a call processing from the standard menu.
Adding a new command to the configuration and command module prescribes the text:
& NaKliente
ObrabotkaKomandy procedure (ParametrKomandy, ParametryVypolneniyaKomandy)
PodklyuchitVneshnyuyuObrabotkuNaServere ();
OtkrytFormu ( "VneshnyayaObrabotka.StandardFindByRef.Forma");
KonetsProtsedury
&On server
PodklyuchitVneshnyuyuObrabotkuNaServere procedure ()
VneshnieObrabotki.Podklyuchit ( "v8res: //mngbase/StandardFindByRef.epf", "StandardFindByRef", false);
KonetsProtsedury When you select this command, the user will start processing "Search object references" from the regular menu.
2. Substitution of standard processing. For example, for some reason, we are not satisfied with the standard treatment. In this case, we can replace it any other. Execute the following code server (for example, "PriZapuske ()" configuration) and then from the standard menu "All functions" - "Search for links to the site" will be called our own external or integrated into the configuration processing.
DvoichnyeDannye = New DvoichnyeDannye ( "C: \ VneshnyayaObrabotka.epf");
AdresHranilischa = PomestitVoVremennoeHranilische (DvoichnyeDannye);
VneshnieObrabotki.Podklyuchit (AdresHranilischa, "StandardFindByRef", false);
3. Change the standard treatment. The standard treatment is very convenient, but sometimes they do not have any small change. For example, we may need to add processing "Search object references" filter to find only documents. You can, of course, write the same treatment on their own, but you can just take the built-in and a bit of change. To get built as a separate file, the code:
KopirovatFayl ( "v8res: //mngbase/StandardFindByRef.epf", "C: \ VneshnyayaObrabotka.epf"); We now have a standard 1C-tion file "C: \ VneshnyayaObrabotka.epf" with built-in processing. You can access it in the configurator and make any necessary changes. Subsequently, the modified process can be used simply as an external or connect the back instead of the built.
And finally, compliance with the standard treatments of internal addresses platform.
1. Active users - "v8res: //mngbase/StandardActiveUsers.epf";
2. Logbook - "v8res: //mngbase/StandardEventLog.epf";
3. Search for references to an object - "v8res: //mngbase/StandardFindByRef.epf";
4. Conduct documents - "v8res: //mngbase/StandardDocumentsPosting.epf";
5. Deleting marked objects - "v8res: //mngbase/StandardDeleteMarkedObjects.epf";
6. Manage external data sources - "v8res: //mngbase/StandardExternalDataSourcesManagement.epf";
7. The outcome of management - "v8res: //mngbase/StandardTotalsManagement.epf";
8. Manage full-text search - "v8res: //mngbase/StandardFullTextSearchManagement.epf";
9. Managing Configuration extensions - "v8res: //mngbase/StandardExtensionsManagement.epf";
And another obrabotochka. Not included in the standard, but is also useful for reference.
10. Designer to control the form of queries - "v8res: //mngbase/QueryWizard.epf";
Do not forget that the use of standard functions is undocumented. Those. currently on platforms 8.2 - 8.3.6 Call options such work quite correctly, but may stop working at any time, so do not abuse them..
It is also worth considering that the official materials 1C is not documented ability to easily change these treatments is not accidental. Embedded processing functionality tailored to the current platform. Those. they take into account the peculiarities of work and limitations of the platform, which are included in the composition. In some cases, when using processing on another platform, there may be errors. Especially in difficult conditions, for example, the removal of documents, or the management of the results of the restoration sequence. So use these treatments should be carefully assessing the possible risks.
I want to go to the end of October another conference Infostart Event Developers 2016.
And at the same time I can tell you about the practice of software to work with 1C-solutions. What are the options for software creation / modification of various configurations / reports / treatments / extensions. Which of these options I like and why. Who are interested in the topic, who wants to hear about it or read the article on the results of the conference, well, or who just interesting to talk with me :), for my report you can vote here.