I have got configured the windows adapter for emulator (iAccess IBM) and text adapter (PComm) for screen in emulator using iAccess emulator. As far as I know, to configure text adapter is mandatory to set sessionID, how can I automate for any session? Any idea?
No specific studio version, but better if it is later than 19.1.
***Edited by Moderator: Pooja Gadige to add platform capability tag***
@HectorSMG I am not sure I understand what you are asking. The SessionID property is required so that you adapter knows which session to connect to. If that SessionID is dynamic, then you can use the WinHLLAPIUtils component to get an event whenever a session is created. This event passes the SessionID out as a parameter, so you could use that to set your adapter's session ID before you start it. Does that answer your question?
I have noticed that first time I extract sessionID it is read OK but not in second time. After closing studio first time is OK again. Any idea? I have tested with ResetState and Initialize methods before SessionCreated event is fired but no result.
Posted: 5 months ago
Updated: 5 months ago
Posted: 5 Feb 2021 7:59 EST Updated: 5 Feb 2021 8:06 EST
I got it!! I can read the sessionID before starting the text adapter in order to set sessionID as property of text adapter. If I read sessionID from WinHLLAPIUtils just after the creation of "black screen" of emulator it works all the times. I attach an screenshot.
@HectorSMG I am not sure what you mean. The session IID is something you must configure within your emulator to make sure that it assigns one to each session. I would check there first to make sure you have iAccess properly configured to use a short session name with each session.