12-18-2018, 05:19 AM
(12-17-2018, 09:23 PM)cyracks Wrote: I tried to add timer on form and start it in procedure pRefreshForm, but it had no effect. If I understand correctly you advise me to add a timer on a form and set it to be enabled all the time ? That is a problem because update frequency should be 1 second or 1 hour, depending on the situation. We would like to monitor entrances to the building where user image is displayed to the receptionist each time a person checks in. So frequency should be 1 second in peak time, when a lot of people are coming to the building and much less otherwise.
Any other idea ?
ps: how come that webapplication.showmessage is shown ?
Regards,
Tomaž
Does this work in the async procedure?
Code:
for i := 0 to ControlCount - 1 do
Controls[i].InvalidateAnother suggestion:
Code:
js: string;
begin
js := 'var form = window.document.forms["SubmitForm"];' +
'if (form) {' +
' form.submit();' +
'}';
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA(js);
end;Both from Alex some time back. I haven't needed them so haven't tried.
Dan

