Page 1 of 1
Framework Reconnect
Posted: Sat Aug 06, 2016 12:55 am
by stevec
Currently the framework reconnects (after a disconnect), but does NOT call the IIP. Is there a way to force the call to IIP in this situation? Or at least specify a function to call so that environmental values can be reset?
Re: Framework Reconnect
Posted: Sat Aug 06, 2016 9:20 am
by MarkD
Is the environmental set up being done on the client or on the server?
Could elaborate on the type of setup things that need to be done?
Re: Framework Reconnect
Posted: Wed Aug 10, 2016 6:20 am
by stevec
Environmental setup is done on server (call from client to server function to C/L and RPG)
We have tons of environmental that gets done from LDA settings to library list. Also on the client side the user selects a company before calling the server to set these. With the disconnect/reconnect the best scenario for us would be to recall the IIP as if it was a startup.
Re: Framework Reconnect
Posted: Wed Aug 10, 2016 8:58 am
by MarkD
That sounds like in your VLF-WIN application you have an IIP (ie: your copy of UF_SYSTM) that is calling the server setup up function in its redefined avMAINWindowReady method?
If that’s correct then this might do the job for you ….
First declare this in your IIP so that you can listen to events signalled by the framework manager ………..
Code: Select all
Define_Com Class(#vf_sy100) Name(#TheFrameworkManager) Reference(*DYNAMIC)
Then in your avMAINWindowReady set it to start listening to it by setting it to the framework manager refernence passed in ………..
Code: Select all
#TheFrameworkManager <= #avFrameworkManager
Then in avCloseMAINWindow make sure it is symmetrically nullified / released …..
Now you should be able to listen to these (re)connection events …………..
Code: Select all
Evtroutine Handling(#TheFrameworkManager.avSessRecovered)
Endroutine
Evtroutine Handling(#TheFrameworkManager.avSessRecoverFailed)
Endroutine
Evtroutine Handling(#TheFrameworkManager.avSessRecoverStarted)
Endroutine
See
http://docs.lansa.com/14/EN/LANSA048/in ... 8_4190.htm
Re: Framework Reconnect
Posted: Wed Aug 31, 2016 12:46 am
by stevec
Thanks Mark that seemed to work!