|
<< Click to Display Table of Contents >> Navigation: Telegram > 2019 > 08 > 06 > Telegram_2019-08-06T04 |
2019-08-06T04:00:05
there is no other way to do it
2019-08-06T04:00:51
so you turn on cookies but you can't use 2 forms in the same session
2019-08-06T04:01:05
you will need to keep them synchronized manually
2019-08-06T04:20:41
Ok. This is more clear. How can I do this? Where do I start?
2019-08-06T04:21:16
I need only an example or a bit of documentation
2019-08-06T04:21:45
or a cue
2019-08-06T04:28:28
procedure TIWServerController.IWServerControllerBaseBackButton(var VResyncInfo: TIWResyncInfo);
begin
VResyncInfo.ExecuteForm := True;
VResyncInfo.SetActiveForm := True;
end;
2019-08-06T04:28:58
thanks
2019-08-06T04:29:17
Set:
ServerController.CookieOptions.UseCookie := True;
Then create a OnBackButton event in your form as above
2019-08-06T04:29:28
done. You have the old behavior back
2019-08-06T04:29:52
you will have only one session for multiple tabs
2019-08-06T04:31:56
try with that same project
2019-08-06T04:32:17
and you will see that you can open 1000 tabs and they will stay on the same session and all events work as intended
2019-08-06T04:34:41
you wrote: Then create a OnBackButton event in your form as above
2019-08-06T04:35:06
you intended ServerController than \form\?
2019-08-06T04:35:27
in your ServerController, yes
2019-08-06T04:35:28
sorry
2019-08-06T04:35:31
ok ok
2019-08-06T04:35:39
Form doesn't have such event
2019-08-06T04:35:51
indeed
2019-08-06T04:48:07
I know it's late for you... only one question: how do I do with CallBacks?
2019-08-06T04:48:39
I mean, when I open a new tab the callbacks of the other form are removed
2019-08-06T04:49:03
??
2019-08-06T04:54:25
no. The callbacks work
2019-08-06T04:54:53
all buttons on that forms use Async methods and they work
2019-08-06T04:55:33
I show you 2 images
2019-08-06T04:57:46
In this page the callback \gotoRecord\ is called when click on link \MAIN_001\
2019-08-06T04:58:18
In JS
2019-08-06T04:58:26
you need to resync your form, as I showed
2019-08-06T04:59:20
on the form?
2019-08-06T04:59:29
the OnBackButton event
2019-08-06T04:59:38
do you have OnBackButton event set there?
2019-08-06T04:59:52
In ServerController
2019-08-06T04:59:57
not in the form...