Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  New java classes & methods in 7.6.1.2?

    Posted Sun August 09, 2020 12:30 AM
    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?
    #Maximo
    #AssetandFacilitiesManagement


  • 2.  RE: New java classes & methods in 7.6.1.2?

    Posted Mon August 10, 2020 08:00 AM

    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
    ------------------------------



  • 3.  RE: New java classes & methods in 7.6.1.2?

    Posted Wed January 27, 2021 10:21 PM
    Edited by System Admin Wed March 22, 2023 11:53 AM

    A related post here:
    It works! Access the UI via an automation script (using getWebClientSession)

    And another one here:
    Info about service.launchDialog(String dialogId)? (new in 7.6.1.2)



    Some additional info about the openURL() method:

    openURL(url,boolean newWindow) => will launch a new window or open that url in the same window.


    #AssetandFacilitiesManagement
    #Maximo


  • 4.  RE: New java classes & methods in 7.6.1.2?

    Posted Thu July 22, 2021 04:51 AM
    Edited by System Admin Wed March 22, 2023 11:54 AM
    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
    ------------------------------



  • 5.  RE: New java classes & methods in 7.6.1.2?

    Posted Thu July 22, 2021 11:05 AM
    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
    ------------------------------



  • 6.  RE: New java classes & methods in 7.6.1.2?

    Posted Fri July 23, 2021 03:02 AM
    Thanks. I've just looked in the AppInstance class and can see what you mean.  I will raise this as I want to be able to redirect my current window. It is going elsewhere and will later be redirected back so I don't want orphaned windows every time a user does it.

    ------------------------------
    David Shaw
    Consultant
    SRO Solutions
    Southampton
    0161 507 4643
    ------------------------------



  • 7.  RE: New java classes & methods in 7.6.1.2?

    Posted Wed July 28, 2021 12:10 AM
    Edited by System Admin Wed March 22, 2023 11:48 AM

    Would you be able to let us know what the APAR or LAFIX number is -- if/when IBM provides it?


    #Maximo
    #AssetandFacilitiesManagement


  • 8.  RE: New java classes & methods in 7.6.1.2?

    Posted Tue August 03, 2021 03:55 PM
    Edited by System Admin Wed March 22, 2023 11:46 AM