Framework Reconnect
Framework Reconnect
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
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?
Could elaborate on the type of setup things that need to be done?
Re: Framework Reconnect
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.
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
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 ………..
Then in your avMAINWindowReady set it to start listening to it by setting it to the framework manager refernence passed in ………..
Then in avCloseMAINWindow make sure it is symmetrically nullified / released …..
Now you should be able to listen to these (re)connection events …………..
See http://docs.lansa.com/14/EN/LANSA048/in ... 8_4190.htm
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)
Code: Select all
#TheFrameworkManager <= #avFrameworkManager
Code: Select all
#TheFrameworkManager <= *NULL
Code: Select all
Evtroutine Handling(#TheFrameworkManager.avSessRecovered)
Endroutine
Evtroutine Handling(#TheFrameworkManager.avSessRecoverFailed)
Endroutine
Evtroutine Handling(#TheFrameworkManager.avSessRecoverStarted)
EndroutineRe: Framework Reconnect
Thanks Mark that seemed to work!