Telegram_2019-08-06T04

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2019 > 08 > 06 >

Telegram_2019-08-06T04

Telegram link

 

2019-08-06T04:00:05

 

there is no other way to do it

 


 

Telegram link

 

2019-08-06T04:00:51

 

so you turn on cookies but you can't use 2 forms in the same session

 


 

Telegram link

 

2019-08-06T04:01:05

 

you will need to keep them synchronized manually

 


 

Telegram link

 

2019-08-06T04:20:41

 

Ok. This is more clear. How can I do this? Where do I start?

 


 

Telegram link

 

2019-08-06T04:21:16

 

I need only an example or a bit of documentation

 


 

Telegram link

 

2019-08-06T04:21:45

 

or a cue

 


 

Telegram link

 

2019-08-06T04:28:28

 

procedure TIWServerController.IWServerControllerBaseBackButton(var VResyncInfo: TIWResyncInfo);

 

begin

 

VResyncInfo.ExecuteForm := True;

 

VResyncInfo.SetActiveForm := True;

 

end;

 


 

Telegram link

 

2019-08-06T04:28:58

 

thanks

 


 

Telegram link

 

2019-08-06T04:29:17

 

Set:

 

ServerController.CookieOptions.UseCookie := True;

 

Then create a OnBackButton event in your form as above

 


 

Telegram link

 

2019-08-06T04:29:28

 

done. You have the old behavior back

 


 

Telegram link

 

2019-08-06T04:29:52

 

you will have only one session for multiple tabs

 


 

Telegram link

 

2019-08-06T04:31:56

 

try with that same project

 


 

Telegram link

 

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

 


 

Telegram link

 

2019-08-06T04:34:41

 

you wrote: Then create a OnBackButton event in your form as above

 


 

Telegram link

 

2019-08-06T04:35:06

 

you intended ServerController than \form\?

 


 

Telegram link

 

2019-08-06T04:35:27

 

in your ServerController, yes

 


 

Telegram link

 

2019-08-06T04:35:28

 

sorry

 


 

Telegram link

 

2019-08-06T04:35:31

 

ok ok

 


 

Telegram link

 

2019-08-06T04:35:39

 

Form doesn't have such event

 


 

Telegram link

 

2019-08-06T04:35:51

 

indeed

 


 

Telegram link

 

2019-08-06T04:48:07

 

I know it's late for you... only one question: how do I do with CallBacks?

 


 

Telegram link

 

2019-08-06T04:48:39

 

I mean, when I open a new tab the callbacks of the other form are removed

 


 

Telegram link

 

2019-08-06T04:49:03

 

??

 


 

Telegram link

 

2019-08-06T04:54:25

 

no. The callbacks work

 


 

Telegram link

 

2019-08-06T04:54:53

 

all buttons on that forms use Async methods and they work

 


 

Telegram link

 

2019-08-06T04:55:33

 

I show you 2 images

 


 

Telegram link

 

2019-08-06T04:57:46

 

In this page the callback \gotoRecord\ is called when click on link \MAIN_001\

 


 

Telegram link

 

2019-08-06T04:58:18

 

In JS

 


 

Telegram link

 

2019-08-06T04:58:26

 

you need to resync your form, as I showed

 


 

Telegram link

 

2019-08-06T04:59:20

 

on the form?

 


 

Telegram link

 

2019-08-06T04:59:29

 

the OnBackButton event

 


 

Telegram link

 

2019-08-06T04:59:38

 

do you have OnBackButton event set there?

 


 

Telegram link

 

2019-08-06T04:59:52

 

In ServerController

 


 

Telegram link

 

2019-08-06T04:59:57

 

not in the form...