I can confirm I'm seeing the same thing in a demo environment. The automation script ScriptService calls openURL(String url, boolean newWindow) in the AppInstance class which calls another openURL method that has parameters for window (IE _blank, _current, etc.) and options but both of those additional options are provided as null. Unfortunately, the logic looks to see if it's set to a new window, if the window is null (which it is in this case), or the window is _blank and in all 3 will set the window to _blank.
Since this isn't a documented API per se, I don't think this could be considered a defect but it may be worth asking. Perhaps the Maximo team can expose the full method in the ScriptService (with the additional options) to provide the flexibility for you to control it too.
------------------------------
Steven Shull
------------------------------
Original Message:
Sent: Thu July 22, 2021 04:50 AM
From: David Shaw
Subject: New java classes & methods in 7.6.1.2?
Hi Steve,
Great find! I've been struggling with a Launch in Context and have given this a quick go. The second paramater doesn't seem to work for me. I've put True and False but they both open another window and I'd rather use the current window. I assumed these would run like _blank and _usecurrent. Have you had any success with that?
DaveS
------------------------------
David Shaw
Consultant
SRO Solutions
Original Message:
Sent: Mon August 10, 2020 07:59 AM
From: Steven Shull
Subject: New java classes & methods in 7.6.1.2?
Each release there are a ton of changes which we slowly unravel as time goes on. For example, while not documented anywhere I've seen yet, there is now a date specification (on TICKET/TICKETSPEC only).
As for your automation script examples, there were 3 things added to the service (ScriptService) that are all pretty useful.
1) Your open URL example. service.openURL(String url, boolean newWindow)
2) Launch a dialog. service.launchDialog(String dialogId)
3) service.getMboSet(String mboSetName, UserInfo userInfo)
The first two are pretty self-explanatory, the last one is when you have to use the MXServer.getMXServer().getMboSet syntax because you're running in a cron task or don't want to get a child set for some reason. It doesn't save a lot of code, but allows you to remove an import which is always nice.
------------------------------
Steven Shull
Director of Development
Projetech Inc
Cincinnati OH
Original Message:
Sent: Sun August 09, 2020 12:29 AM
From: User1971
Subject: New java classes & methods in 7.6.1.2?
Regarding Maximo 7.6.1.2:
Does anyone have any information about new Java classes or methods that might have been added to the new version?
For instance, back in 2019, there was a rumor that there was a new class/method that would allow us to open a URL in a new tab in the browser (via an automation script).
Any leads?
#AssetandFacilitiesManagement
#Maximo