Maximo Open Forum

 View Only

Automation script - gotoapp event

  • 1.  Automation script - gotoapp event

    Posted 07-14-2025 10:26

    Hi!

    I trying to handle gotoapp event from automation script, but cannot. 

    It works fine with 

    wcs.gotoApplink(newUrl)

    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? 


    #Customizations

    ------------------------------
    Andrey Ilinskiy
    Handz.on
    ------------------------------


Newest Episode
Ep. 8 | Going Beyond Manage with Steve Hauptman

Watch Steven Shull and Steve Hauptman discuss how Maximo teams can go beyond Manage in MAS, including Health, Monitor, Predict, AI, Scheduler, Mobile, HSE, Collaborate, and MBI.

MORE by Naviam Episode 8 cover
Watch Episode 8
Also available: Ep. 7 | Maximo UI Modernization with Jordan Smith