1Ci Support Help Center home page
Submit a request
Sign in
  1. 1Ci Support
  2. 1C:Enterprise Platform FAQ
  3. Development

An example on how the asynchronous methods work

  • Development
    • How to read and write data to/from a 1C:Enterprise info base to an XML file?
    • How to show totals for dynamic list fields on the form
    • How to setup and work with distributed infobases in 1C:Drive, alternative way, when the subordinate databases will not be created from the main infobase
    • Is it possible to cumulatively select and deselect rows of a form table by just left clicking on them?
    • How to filter a dynamic list via programming
    • How can I create a Dynamic List via programming?
    • How to filter a value table on a form by changing the query filling the value table
    • How to insert a value table to a query as a parameter
    • Conditional Appearance: How to set it up from the Designer
    • An example on how the asynchronous methods work
See more

Question:  

The code in which I have used PutFile() method for selecting a picture file from the harddisk to be saved in the database works fine from the Thin Client. However,  when I tried it from the Web Client, the file selection dialog does not open, the system gives an error.

 

Answer:  

For the code to work from Web Client, you must use the Asynchronous version of the PutFile() method, which is BeginPutFile(). How it is done is explained in the screenshot below. Also please take note that in the below example, BeginPutFile() method is nested in another asynchronous method called BeginAttachingFileSystemExtension().

 

01920_answer.png

© 2020-2022 1C INTERNATIONAL LLC www.1Ci.com Support policy