Framework Reconnect

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
stevec
Posts: 14
Joined: Sat Aug 06, 2016 12:50 am

Framework Reconnect

Post by stevec » Sat Aug 06, 2016 12:55 am

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?

MarkD
Posts: 627
Joined: Wed Dec 02, 2015 9:56 am

Re: Framework Reconnect

Post by MarkD » Sat Aug 06, 2016 9:20 am

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?

stevec
Posts: 14
Joined: Sat Aug 06, 2016 12:50 am

Re: Framework Reconnect

Post by stevec » Wed Aug 10, 2016 6:20 am

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.

MarkD
Posts: 627
Joined: Wed Dec 02, 2015 9:56 am

Re: Framework Reconnect

Post by MarkD » Wed Aug 10, 2016 8:58 am

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 …..

Code: Select all

#TheFrameworkManager <= *NULL
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

stevec
Posts: 14
Joined: Sat Aug 06, 2016 12:50 am

Re: Framework Reconnect

Post by stevec » Wed Aug 31, 2016 12:46 am

Thanks Mark that seemed to work!

Post Reply