Hi, gurus! Please assist, how can I make a progress for long operations which are performed at server? For example I want to convert some data in a huge catalog during an update of the infobase. This operation might take for example 20 minutes and I would like to display a user the progress of this operaton not to get interrupted in the middle of something when they will reboot a server. The problem is that when I start running this operation the client stops responding and I can not make calls to the server to get the progress and display it to the user. Thanks in advice.
Pprogress can be used only if the task can be divided into parts and run them in parts. If possible - should be in the loop on the client side call to perform the next portion of code to perform tasks after changing the value of the progress and make a call RefreshDataRepresentation(). No other way. Unfortunately, the web client, and this did not work.
Thank you for reply, Escander. The problem in division is that the query takes about 30% of the operation and other parts are using the result. How yould I keep a hudge query result between calls to the server? And what if to use scheduled jobs for that?
Do not quite understand the question, poor knowledge of English. From the server-side code nedosupen call to a client, so the implementation progress bar will be available only for problems in which the long process of well quantized into smaller parts more or less the same time ispolneniya, pichem that-be control loop could be placed on the server side. But unfortunately even temptablesmanager not accessible from the client.
If You will run many(more than 1 and this will in multiuser) sheduled jobs then 1s will crash with message "Менеджер заданий не активен" = "Shedule job manager unnactive"(i don't now how it will written in english)/ This error is unDEBUGEable. This CAN(! without rules, in any time) error apear till one job runing and begining work next job. I'm using 1S like 1S without Sheduled job. And when i need sheduled job in 1S i'm using Windows job manager wich start with "ROBOTuser" wich make what i need OnStart method and close program. Sorry for my bad english, but i think You can't use sheduled jobs in Your case.