Thank you for providing this info Niels.
I tried the applinkreturn event but it did not work. It failed on the getPreviousApp.getId().
Below are the two lines of code in my Autoscript. The first line works fine that takes me to the Work Order app. But the second line for applinkreturn throws an error that None type object has no attribute getId(). So its not able to get the Previous App instance.
service.webclientsession().queueEvent(WebClientEvent("changeapp", service.webclientsession().getCurrentApp().getId(), "tnomntwo", None, None, None, woMbo.getUniqueIDValue(), service.webclientsession()))
service.webclientsession().queueEvent(WebClientEvent("applinkreturn", service.webclientsession().getPreviousApp().getId(), None, service.webclientsession()))
------------------------------
Gagan Deep Bansal Director
ABC
Calgary AB
------------------------------
Original Message:
Sent: Tue October 01, 2024 10:53 AM
From: Niels Boom
Subject: Automatically Navigate User to newly created Work Order through Automation Script
Never done that so I'm not sure. If you are using the WebClientEvent approach you might be able to with the gotoapp-event and the applinkreturn-event
AppInstance prevApp = this.clientSession.getPreviousApp();
WebClientEvent("applinkreturn", prevApp.getId(), null, this.clientSession);
https://moremaximo.com/discussion/does-anyone-know-if-there-are-is-a-list-of-webclientevents-documented
------------------------------
---
Niels Boom
ibmcontact@nielsboom.nl
------------------------------
Original Message:
Sent: Tue October 01, 2024 10:31 AM
From: Gagan Deep Bansal
Subject: Automatically Navigate User to newly created Work Order through Automation Script
Thank you Niels! That did help navigate to the Work Order app but it does not create a Return link to come back to the original application i.e. Operator Log.
Do you know a way to have the Return link enabled?
------------------------------
Gagan Deep Bansal Director
ABC
Calgary AB
Original Message:
Sent: Tue September 24, 2024 08:07 PM
From: Niels Boom
Subject: Automatically Navigate User to newly created Work Order through Automation Script
I'm quite sure openUrl should work if used like this. Providing in case you didnt use the parameters the same way.
service.openURL("https://google.com",True)
Alternatively you can take a look at this sample:
newEvent = WebClientEvent("changeapp", appinstance.getId(), "wotrack", None, None, None, UID, session);
session.queueEvent(newEvent);
------------------------------
Niels Boom