How to connect the extension for working with files 1c. Setting up and using the Microsoft Internet Explorer web browser

Time is inexorably going forward, and the 1C 8 platform runs even faster than this time.

Managed forms are now called "TAXI interface", modal windows are prohibited, and the mode of using synchronous calls to extensions and external components tightly put the workability of most of these extensions and external components, and half of the old methods in addition.

In general, guys, things are like this - many of you have read the article by the magnificent P. Chistov about working with files in 8.3

If you haven’t done it yet - run the march! ()

The essence of the mechanism for working with files in short:

1) On the client, select the file

2) We shove it into a black box

3) Save the contents of the black box on the server

The catch is that this should be done especially, in a new way and with a soul.

Therefore your

SelectedFile.Exists ()

and other pagan things won't work here.

So let's go!

Here is a code listing that allows you to download a file from the client

AlertDescription = New AlertDescription ("ProcessFileSelection", EtaForm); FileOpen Dialogue = New FileSelectDialogue (FileSelectionDialogueMode.Opening); FileOpen Dialogue.MultipleSelection = False; StartFilePlace (AlertDescription, FileOpen Dialogue, True, UniqueIdentifier);

We are interested in the method " StartPlaceFiles", which, in fact, calls the file selection dialog and places this file into temporary storage. It makes no sense to bother with the description of the temporary storage, just remember - this is the place where all the files we have selected are placed in the form of binary data (black box).

& OnClient Procedure ProcessFileSelection (PlacedFiles, AdditionalParameters) Export If PlacedFiles = Undefined Then Return; EndIf; For each TransferredFile From PlacedFiles LoopFilePath = TransferredFile.Name; Record.FileName = ParsingString (PathFile, "\"); Elements.OpenFile.Header = Record.FileName; Address = SentFile.Storage; End of Cycle; EndProcedure // ()

It is almost impossible to understand what is there and how to store it in this temporary storage. You can only refer to our file using the navigation link, which is assigned automatically (see the variable " Address").

With the fact that files need to be stored in a props or resource with the type " Value store", I think, no one will argue. Get the file from the temporary storage and place it in the props with the type" Value store"can be as follows:

New Value Store (Get From Temporary Store (Address));

We figured out one, now the second is how to get a file from this store of values ​​(which, recall, is located on the server) and save it to the client's disk?

First of all, we need to get a navigation link to the props with the type " Value store", where we put the file in the form of binary data.

Be careful! This navigation link has nothing to do with temporary storage anymore! You can check the type of navigation link using the method

This is the Temporary Storage Address (Address)

By tradition, the listing of the code that invokes the file save dialog

AlertDescription = New AlertDescription ("FileSaveProcessing", EtaForm); File = NewDescription of TransmittedFile (FileName, Address); RetrievedFiles = New Array; ReceivedFiles.Add (File); FileOpeningDialog = NewFileSelectionDialogue (FileSelectionDialogueMode.Save); FileOpen Dialogue.MultipleSelection = False; StartReceivingFiles (Alert Description, ReceivedFiles, OpenFile Dialogue, True);

Variable value " File"this is another feature this method... It is worth paying attention here to " File name". The fact is that by placing a file in temporary storage, information about its name and extension is lost. Therefore, do not forget to save the correct file name somewhere, or at least its extension, so that you do not have to worry about the question later." Is this a Word document or mp3?"

Method " Get StartedGetting Files"similar to method" StartPlaceFiles". Just one opens a dialog to select a file, while the other, on the contrary, opens a dialog to save the file.

In principle, everything.

When using this method, you do not need to set any compatibility of modality and synchronous calls in the configuration properties.

I wrote the article more as a memo for myself.

Setting up and using the Microsoft web browser Internet Explorer

Features of use

If your computer is running the Windo.ws XP SP 2 operating system, the library is required jscript.dll version 5.6.0.8834 and higher. The library can be found in the folder system32 operating system... Earlier versions of the library will slow down the web client significantly. For earlier versions of jscript.dll, we recommend downloading the update package from the Microsoft website.

Web Browser Usage Settings

Before using a web browser for the first time, you must configure the Internet properties. To do this, you need to take the following steps:

1. In the upper left corner of the browser, click on the "Settings" icon, select Internet Options and configure the following parameters:

2. Allow execution JavaScript scripts:

  • Security tab for the Internet zone, click Custom;
  • Scripting section for Active scripting, select Enable and click OK.

3. Allow pop-ups:

  • Privacy tab;
  • In the Pop-up Blocker section, uncheck the Block Pop-ups checkbox.

4. Allow cookies:

  • Privacy tab - select the level of cookie usage that is convenient for you, but not higher than Medium High.

If you plan to work with external equipment (barcode scanners, electronic scales, etc.), you need to make additional customization web browser:

1. Security tab - click the Custom level button;


2. In the window that opens, check Enable for the following parameters:

  • Automatic promting for ActiveX controls
  • Download signed ActiveX controls
  • Work with ActiveX objects and plug-ins (Run ActiveX controls and plug-ins);
  • Script ActiveX controls marked safe for scripting.

Not to checkkeyboard layout each time the sub windows appear, you can set the default input language. This requires:

1. Open OS settings "Regional and Languages ​​Options"

2. Tab "Languages", section "Languages ​​and services text input"(" Text services and input languages ​​") - press the button" Details ... "(" Details ... ")

3. In the window that appears, click the "Settings" tab in the "Default input language" section and select the desired language

4. press the "OK" button

Features of using advanced tools for working with files

File operations in web client mode are performed interactively. Even if the action does not require user interaction (file selection, etc.), the program displays a dialog box where the user must confirm his action.

To use advanced tools for working with files in Internet Explorer, you need to install a special ActiveX component "1C: Enterprise 8.2. Extension for working with files for Internet Explorer (x86)" (32-bit or 64-bit version). This component is already included in the 1C: Enterprise 8.2 platform, but its installation requires the implementation of a call to the InstallExtensionWorkWithFiles method in the configuration.

For the component to work correctly, the browser must be granted the rights to install and use signed ActiveX components for the zone in which the website is located.

Here you can see detailed information for setting up and configuring web browsers Microsoft Internet Explorer, Mozilla Firefox, Apple Safari and Google chrome to work with the program "1C: Management of our company" ("UNF").

Setting up and using the Microsoft Internet Explorer web browser

Features of use

To work with the web client in the operating room Windows system XP SP 2 requires system library jscript.dll versions 5.6.0.8834 or higher.

The library is in the directory system32 operating system. If your computer has more than early version libraries, the web client may slow down significantly. To update the version, you need to download the update package located at http://support.microsoft.com/kb/942840/en-us.

At using Microsoft Internet Explorer 7 and Microsoft Internet Explorer 8 with bookmarks enabled, in the window where there are bookmarks, to switch from the main (window with bookmarks) to the child form (separate window) using the keyboard, use the keyboard shortcuts + Ctrl + F6. If bookmarks are disabled, you can also use the Ctrl + Tab keyboard shortcuts to switch.

For this

  • On the menu Service (Tools) select item Internet Options and do the settings:
    • in the tab Security for the Internet zone, click Other (Custom level);
    • In chapter Scripting for parameter Active scripting install Enable and press the button "OK".
  • Allow pop-ups:
    • go to tab Privacy;
    • In chapter Pop-up Blocker uncheck the box Block Pop-ups.
    • in the tab Privacy use the slider to select the level of cookies use - no higher Medium High.

If you intend to work together with a barcode scanner, electronic scales or other external components, you need to configure the following web browser settings:

  • in the tab Security press the button Other (Custom level);
  • in the window that opens, you need to install Enable for the following parameters:
    • Automatic promting for ActiveX controls;
    • Download signed ActiveX controls;
    • Run ActiveX controls and plug-ins;
    • Script ActiveX controls marked safe for scripting.

Each time the sub-windows are opened, the keyboard layout is selected from the operating system settings. If it does not match the data input language, then in order to exclude language switching, it is recommended to specify the required input language in the settings.

Follow these steps to set the default input language:

  • open your operating system settings "Regional and Languages ​​Options";
  • on the bookmark "Languages" In chapter "Text services and input languages" press the button "Details ...";
  • in the opened window on the tab "Settings" In chapter "Default input language" select the required language;
  • press the button "OK".

When working in Internet Explorer 8, in some situations when switching to already open window another window will display a dialog with the text "Press OK to go to the window" and the OK button. After pressing the button, you will go to the window.

Features of using advanced tools for working with files

Implementation for Internet Explorer requires the installation of a special ActiveX component 1C: Enterprise 8.2. File extension for Internet Explorer (x86) or its 64-bit version for 64-bit Internet Explorer. The component is included in the framework, but its installation must be provided for in the configuration (a call to the InstallWorkExtensionWithFiles method must be implemented).

To work with the component, the browser must have the rights to install and use signed ActiveX components for the zone in which the website is located.

The Microsoft Core XML Services (MSXML) library is used to work with files. The recommended versions are MSXML 6.0 and MSXML 4.0. In the case of using MSXML 3.0, there may be problems with transferring large files from the client to the server.

For a list of MSXML module versions, restrictions and installation recommendations, see this page.

Setting up and using the Mozilla Firefox web browser

Features of use

All operations with file system(receiving a file from the server, transferring a file to the server, deleting a file, etc.) are performed strictly interactively. If the execution of an action does not require interaction with the user (for example, selecting a file), then a warning dialog is displayed, requiring confirmation from the user.

Web Browser Usage Settings

To connect to 1C: Enterprise 8 infobases using Mozilla Firefox, you need to configure the following settings:

  • Open your browser, in the menu Tools select item Options;
  • Content
    • Uncheck the box;
    • Check the box Enable JavaScript.
  • Go to section Privacy set the following settings:
    • Check the box Accept cookies from sites;
    • For detailed settings for accepting or rejecting cookies, click the button Exceptions and follow the explanations of the configuration dialog.

If the English version of Mozilla Firefox is used as a browser, then for the web client to work correctly, the following configuration is required (the location of the settings is given for version 3.5):

  • Open your browser, in the menu Tools select item Options;
  • On a bookmark Contents in a group Fonts & Colors press the button Advanced;
  • In the parameter Default Character Encoding choose Unicode.

Modification of other parameters that may be required to work with the 1C: Enterprise web client can be done using the command "Service - Web Browser Configuration"... Settings are made in the window, which can also be made in the settings of the web browser itself in the request for privileges dialog.

The window is used to configure the following browser settings (in parentheses are similar settings for the settings of the web browser):

  • Allow work with the clipboard, file extension, external components(signed.applets.codebase_principal_support) - for working with the clipboard, external components and advanced working with files (true);
  • Allow the use of non-latin characters in the startup string parameters(network.standard-url.encode-query-utf8) - to use non-latin characters in address bar(true);
  • Allow keyboard use to switch between application windows(dom.popup_allowed_events) - to allow navigation through application windows from the keyboard (adds the keydown event to the parameter value);
  • Use operating system authentication(network.automatic-ntlm-auth.trusted-uris) - if set, operating system authentication will be performed. This setting only changes the value of the network.automatic-ntlm-auth.trusted-uris key. To authenticate the operating system to a specific network and web server configuration, you may need to set values ​​for the network.negotiate-auth.trusted-uris and network.negotiate-auth.delegation-uris keys. Additional information see https://developer.mozilla.org/en/Integrated_Authentication.

These parameters can also be configured manually. To do this, you need to type in the address bar of your web browser about: config, then in the filter line type any word from the parameter name (for example, principal) and change its value in the list.

  • Open your browser, in the menu Tools select item Options;
  • In the window that opens, go to the section The main;
  • Check the box Always ask to save the file.

For manual setting authentication follows:

  • in the address bar of the browser, type about: config.
  • then on the settings page in the filter line enter the name of the parameter.
    This setting is carried out for three parameters:
    • network.automatic-ntlm-auth.trusted-uris,
    • network.negotiate-auth.delegation-uris,
    • network.negotiate-auth.trusted-uris.
  • then set the list of web servers through which work with the 1C: Enterprise database will be carried out.
  • The web server supports NTLM-authentication.
    If the name of the web server to which you are trying to access is listed in the list of names contained in the parameter network.automatic-ntlm-auth.trusted-uris, then automatic authentication will be attempted. If the name of the web server is not there, then the browser will show a dialog in which you must specify the username and password to access the web server.
  • The web server supports Kerberos-authentication.
    In order to access a web server with this type of authentication, add the name of this web server to the parameter. When working with a file infobase, this will be sufficient. If it is necessary to provide automatic authentication of web client users when using the 1C: Enterprise client-server option, you must add the DNS name of this web server to the parameter network.negotiate-auth.delegation-uris.
    In case the name of the web server being accessed is not found in the parameter network.negotiate-auth.trusted-uris, no authentication will be performed and the user will see a 401 Unauthorized error message. To inform the user about the actions he needs to take, the administrator can modify the 401 error page (see the documentation for the web server used).

Features of using advanced tools for working with files

All operations with the file system (receiving a file from the server, transferring a file to the server, deleting a file, etc.) are performed strictly interactively. If the execution of an action does not require interaction with the user (for example, selecting a file), then a warning dialog is displayed, requiring confirmation from the user.

The file extension requires a privilege UniversalXPConnect... The Mozilla FireFox web browser makes the privilege request interactively, but the user can remember the solution for a given website.

If the Mozilla FireFox web browser remembers the user's decision to grant the privilege, and the user wants to change this decision, he will have to edit the file himself prefs.js that is stored in his Mozilla Firefox web browser profile folder.

The description of how to find the profile folder is here:
http://wiki.mozilla.ru/index.php/ About Mozilla Firefox profiles (Russian article)
http://support.mozilla.com/en-US/kb/Profiles (article in English).

Next you need:
1. Complete work Mozilla FireFox.
2. Open prefs.js any text editor
3. Find a string in the text UniversalXPConnect... A piece of text will be found of the following kind:
user_pref ("capability.principal.codebase.p.granted", "UniversalXPConnect");


or
user_pref ("capability.principal.codebase.p.denied", "UniversalXPConnect");
user_pref ("capability.principal.codebase.p.id", "");
user_pref ("capability.principal.codebase.p.subjectName", "");
where is any number, and is the address of the desired website. If not, then you need to continue searching for "UniversalXPConnect" in the text.
4. Remove found lines from the text.

Setting up and using the Apple Safari web browser

To use a web browser, you need to configure the Internet properties.

To do this, open the menu, select the item Preferences and do the settings:

  • Allow JavaScript scripts to execute:
    on the bookmark Security choose Enable JavaScript
  • Allow cookies:
    on the bookmark Security in a group Accept cookies choose Only from sites I visit;
  • Allow pop-ups:
    on the bookmark Security uncheck the box Block pop-up windows.
  • On the menu Safari Settings select item Preferences;
  • On a bookmark Basic (General) check the box Always prompt before downloading.

Setting up and using the Google Chrome web browser

To use a web browser, you need to configure the Internet properties.

To do this, open the menu Tools, select item Options, on the tab Extended (Under the Hood) press the button Content settings and do the settings:

  • Allow cookies:
    on the bookmark Cookies(Cookies) choose Allow local data to be set (recommended) or set up exceptions;
  • Allow JavaScript scripts to execute:
    on the bookmark JavaScript choose Allow all sites to run JavaScript (recommended) or set up exceptions;
  • Allow pop-ups:
    on the bookmark Pop-ups choose Allow all sites to show pop-ups or set up exceptions.
  • Open the menu Tools, select Options;
  • On a bookmark Extended (Under the Hood) In chapter Downloads check the box Ask where to save each file before download.

Implementation for Internet Explorer requires the installation of a special ActiveX component 1C: Enterprise 8.2. The file extension for Internet Explorer (x86) or its 64-bit version for 64-bit Internet Explorer. The component is included in the platform, but its installation must be provided for in the application solution. If the user does not have sufficient rights to install the component, the administrator can perform it.

To work with the component, the browser must have the rights to install and use signed ActiveX components for the zone in which the website is located.

NOTE. For correct operation of the extension for working with files, it is recommended to use the Microsoft Core XML Services (MSXML) library version 4.0 or 6.0.
A list of MSXML module versions, restrictions, and installation guidelines are located at: http://support.microsoft.com/kb/269238.

Setting up Mozilla Firefox

To use the Mozilla Firefox browser, the following configuration is required:

1. From the Tools menu, select Options.

● On the Content panel, set the following settings:

● Uncheck Block pop-up windows.

● Check the Enable JavaScript checkbox.

● On the Privacy panel, configure the following settings:

● Check the box Accept cookies from sites.

● For detailed settings of accepting or rejecting cookies, click the Exceptions button and follow the explanations of the settings dialog.

● Click OK.

2. Launch the 1C: Enterprise web client by entering the infobase address into the browser address bar. In the main menu of the web client, select Tools - Web Browser Settings. The Web Browser Settings dialog will be displayed.

§ To work with the operating system's clipboard, an extension for working with files and external components, check the Allow work with the clipboard, extension for working with files, external components box.

● To use non-Latin characters in the address bar of the browser (for example, when clicking on 1C: Enterprise links), check the Allow the use of non-Latin characters in the launch line parameters.

§ To enable the ability to activate windows by pressing a keyboard shortcut, select the Allow keyboard to switch between application windows check box.

● Authentication using the operating system is configured by changing the Use operating system authentication check box. In some cases, an additional change in the settings of the browser itself may be required: in the network.negotiate-auth.trusted-uris and network.negotiate-auth.delegation-uris parameters, you must specify a list of sites that support the OS authentication mode. To configure these parameters, type about: config in the address bar of the browser, then type the names of the parameters in the filter line and set the list of sites as the parameter values.

NOTE. For more information on configuring OS authentication in Mozilla browser Firefox is available at (in English): https://developer.mozilla.org/en/Integrated_Authentication

Extension connection error ... for 1C: Accounting 8.3, revision 3.0

2016-12-08T16: 04: 02 + 00: 00

In this manual I will tell you how to deal with an error like this: "Error connecting the extension: NameExtensions... "for 1C: Accounting 8.3, revision 3.0.

Download":

6. After that, click the "Restart" button:

1C will restart and the new version of the extension will work, already without errors.

Disable extension

If you get new version extension is impossible or you decided to abandon it for other reasons, then you need:

1. Enter the database in user mode.

2. Open the "All functions" menu ():

3. In the dialog that opens, open the "Standard" item and select the "Manage configuration extensions" processing:

4. Here among installed extensions find the one you want (by its name in the error message), select it and press the " Delete":

After that, the extension will be removed from the database (it already did not work anyway) and the error message will no longer appear when opening the program.

Sincerely, Vladimir Milkin(teacher and developer).