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
Original Message:
Sent: Mon September 23, 2024 10:54 PM
From: Gagan Deep Bansal
Subject: Automatically Navigate User to newly created Work Order through Automation Script
Hi Everyone!
I am working on a functionality of creating a work order on click of a button in Operator Log application and also open this new work order record in the Work Order application.
I am not able to navigate to the Work Order application and open this new record from the automation script.
I have tried both the service.openURL and webclientsession.gotoApplink methods to achieve this functionality but its not working.
When I use the service.openURL method it gives me Access Denied error on the new browser window.
I would appreciate if you could share some ideas.
Thank you!
------------------------------
Gagan Deep Bansal Director
ABC
Calgary AB
------------------------------