Topic
  • 4 replies
  • Latest Post - ‏2014-07-04T14:08:56Z by kay_s
AndreasBr
AndreasBr
7 Posts

Pinned topic Sending "dialogok" from Automationscript | get WebClientSession in Jython

‏2013-08-20T07:54:55Z |

Hello,

 

i want to fire a custom action (automation script) from a dialog in an application. When i put this action on the OK-Button of the Dialog, the action is executed, but the dialog is not closed.

I found a workaround to send this "dialogok" notification from the automation script, but am missing some information that i need to really automate it.

from psdi.webclient.system.controller import SessionContext, Utility, WebClientEvent
from psdi.webclient.system.session import WebClientSessionManager


uisessionid = "12"
c = WebClientSessionManager().getWebClientSession(uisessionid)
Utility().sendEvent(WebClientEvent("dialogok", c.getCurrentPageId(), None, SessionContext(c)))
 

The bold marked value is my problem. This should represent the actual uisessionid where the OK-Button is clicked. If i enter the actual value from my session there this works like a charm (for this session at least). But however i try, i am not able to retrieve this value automatically.

Anyone has an idea on how to obtain the current WebClientSession?

 

regards,

Andreas

Updated on 2013-08-21T07:36:05Z at 2013-08-21T07:36:05Z by AndreasBr
  • Vasya_Terkin
    Vasya_Terkin
    4 Posts

    Re: Sending "dialogok" from Automationscript | get WebClientSession in Jython

    ‏2014-06-05T11:53:11Z  

    Hi, Andreas!

    Thanks a lot for this Topic!

    Did you find a way to obtain the current WebClientSession?

    Updated on 2014-06-05T11:56:24Z at 2014-06-05T11:56:24Z by Vasya_Terkin
  • kay_s
    kay_s
    8 Posts

    Re: Sending "dialogok" from Automationscript | get WebClientSession in Jython

    ‏2014-07-01T04:55:20Z  

    I am stuck on the same. Was anyone able to make this work? 

  • AndreasBrieke
    AndreasBrieke
    2 Posts

    Re: Sending "dialogok" from Automationscript | get WebClientSession in Jython

    ‏2014-07-03T13:40:57Z  

    Sorry, but until yet i was not able to get this working :(

  • kay_s
    kay_s
    8 Posts

    Re: Sending "dialogok" from Automationscript | get WebClientSession in Jython

    ‏2014-07-04T14:08:56Z  

    Sorry, but until yet i was not able to get this working :(

    As per my findings its a known issue in MAXIMO 7.5 and it can't be done!  There is more information here - https://www.ibm.com/developerworks/community/forums/html/topic?id=280124ee-dee8-434d-bba9-8193a66ca9a6&ps=25

    Thanks for the reply anyways!