Hello, Mehmet Tuğrul SARIÇİÇEK.
Unfortunately, modal forms are not working well in web client because browsers require using asynchronous callbacks to improve user experience.
So, you should use NotifyOnCloseDescription parameter of the OpenForm function.
Here is an example from 1C:Subsystems Library:
| Code |
|---|
OpenForm("DataProcessor.ScheduledAndBackgroundJobs.Form.ScheduledJobExecution",,,,,, New NotifyDescription("OnStartEnd", ThisObject), FormWindowOpeningMode.LockWholeInterface);
...
Procedure OnStartEnd(Result, AdditionalParameters) Export
If Result = "Restart" Then
SkipExitConfirmation = True;
Exit(False, True, " /C""" + LaunchParameter + """");
EndIf;
SkipExitConfirmation = True;
Exit(False);
EndProcedure |