But what is interesting, that if you have return buttons (appl.put("returninputR/O", "true")), then render event is applied and no any addition events are used. Correct me if I am wrong.
Original Message:
Sent: Tue July 15, 2025 08:06 AM
From: Paul Irving
Subject: Automation script - gotoapp event
Hi Andrey,
Give this a go.
from psdi.webclient.system.controller import WebClientEvent,Utility;from psdi.webclient.system.session import WebClientSessionManager, WebClientSession;wcs = service.webclientsession()wce = wcs.getOriginalEvent();appl = wcs.getCurrentApp()e = WebClientEvent("gotoapp", None, "wotrack", wce.getSessionContext());se = WebClientEvent("execevent", wce.getSessionContext().getCurrentAppId(), e, wce.getSessionContext());appl.put("returninputR/O", "true");Utility.sendEvent(se);
------------------------------
Paul Irving
Chief Product Officer
Naviam
Original Message:
Sent: Mon July 14, 2025 10:24 AM
From: Andrey Ilinskiy
Subject: Automation script - gotoapp event
Hi!
I trying to handle gotoapp event from automation script, but cannot.
It works fine with
But in this case with
wcs.getCurrentApp().put("returninputR/O", "true");
to make return button
doesnt work changetab (I built in url changetab=tabid). Without return buttons it works.
I trying to do like
wcs = service.webclientsession()wce = wcs.getOriginalEvent();e = WebClientEvent("gotoapp", appinstance.getId(), "wotrack", wce.getSessionContext());or e = WebClientEvent("gotoapp", appinstance.getId(), "wotrack",wcs );wcs.getCurrentApp().put("returninputR/O", "true");wcs.queueEvent(e);
but after clicking script works, but app doesnt change. And after second click i have error "
This session is not valid because it is being used by another browser tab or window. Any changes you made might be lost. Use the return button to open a new session. To prevent this problem recurring, only open additional windows from bookmarked links."
Any ideas?
------------------------------
Andrey Ilinskiy
Handz.on
https://www.on.de/
München
------------------------------