Maximo

Maximo

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

 View Only
  • 1.  IntelliSense for automation scripts?

    Posted Thu August 05, 2021 12:27 AM
    Edited by System Admin Wed March 22, 2023 11:50 AM
    MAM 7.6.1.2:

    Has there ever been any talk of IBM implementing IntelliSense-like functionality for automation scripts?

    I think that would make a world of difference. Even if it could just list the available methods in a drop down or something like that.

    Example:
    https://code.visualstudio.com/docs/editor/intellisense


    Or is that completely out of reach in Maximo?


    RFE / Idea:
    IntelliSense for automation scripts
    https://ibm-ai-apps.ideas.ibm.com/ideas/MASM-I-551


    (aka "code completion", "content assist", or "code hinting")
    #Maximo
    #AssetandFacilitiesManagement


  • 2.  RE: IntelliSense for automation scripts?

    Posted Fri August 06, 2021 08:38 AM

    Hi User1971,
    The following RFE was requested a few years ago and the request also asked for IntelliSense functionality:
    Introduce a developer friendly text window for Automation Scripts
    https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=97095

    The latest version of Maximo now has many of the features asked for such as syntax highlighting,proportional fonts,line numbers etc.
    However IntelliSense does not seem to be there.



    ------------------------------
    Visium Workflow
    ------------------------------



  • 3.  RE: IntelliSense for automation scripts?

    Posted Sun August 08, 2021 08:21 PM
    As Visium mentioned, today what you see is essentially what's possible. The newer editor supports syntax highlighting for both jython and JavaScript and can help you avoid some types of errors. But the functionality people really want (IE what methods are available on mbo or in service) isn't possible today. Getting the Java methods available (as well as the implicit variables that get established by the framework) is a complicated issue I discussed with some of the developers a year or so ago, Nothing committed, but it is known that it'd be valuable feature to have.

    ------------------------------
    Steven Shull
    ------------------------------



  • 4.  RE: IntelliSense for automation scripts?

    Posted Wed August 11, 2021 03:57 PM
    It would be great if IntelliSense were available in say Visual Studio Code for the Maximo classes but that is no small task to achieve.  A more easily achievable short term goal would perhaps be for the Maximo community to contribute together to a set of Maximo related snippets for VSCode.

    I have made a start here with a Maximo Python Snippets VSCode Extension.

    The GitHub repository for the extension can be found (and also contributed to) here.

    The actual snippets are found in this file.

    This guide describes the syntax for the snippets.code-snippets file.

    Any contributions from the wider Maximo community would be gratefully received and packaged into the freely available extension for Visual Studio Code on the MS Marketplace.

    ------------------------------
    Maximo Wiki
    ------------------------------



  • 5.  RE: IntelliSense for automation scripts?

    Posted Thu August 12, 2021 06:38 PM
    I forgot to mention but there is also a Visual Studio Code extension (not my own but by Rana Ahmed) that can also be used to download automation scripts from Maximo for editing or upload them back to Maximo. It can be found here.

    ------------------------------
    https://maximo.wiki
    ------------------------------

    #Maximo
    #AssetandFacilitiesManagement


  • 6.  RE: IntelliSense for automation scripts?

    Posted Thu August 12, 2021 10:22 AM
    It would be great if IntelliSense were available in say Visual Studio Code for the Maximo classes but that is no small task to achieve.  A more easily achievable goal would be for the Maximo community to contribute together to a set of Maximo related snippets for VSCode.

    I have made a start here with a Maximo Python Snippets VSCode Extension.

    The GitHub repository for the extension can be found (and also contributed to) here.

    The actual snippets are found in this file.

    This guide describes the syntax for the snippets.code-snippets file.

    Any contributions from the wider Maximo community would be gratefully received and packaged into the freely available extension for Visual Studio Code on the MS Marketplace.

    ------------------------------
    Maximo Wiki
    ------------------------------