Maximo Open Forum

 View Only
  • 1.  Beans & Automation Scripts

    Posted 06-05-2020 22:06
    Hello,

    I have a question around using automation scripts to trigger a bean class method. 

    He is what i am trying to achieve :

    I have a custom button on the screen, which triggers an automation script to validate some field values on that tab. If the validation is successful then I would like the for the script to navigate to a next tab on the screen. It can be done in the bean class by calling clientSession.queueEventI() method, but i am not sure of how to accomplish this same functionality in automation script.

    Has anyone had a similar requirement. or any other suggestions on how this can be accomplished ?

    Thanks in advance. 

    #Customizations

    ------------------------------
    vikky k
    Idyllic Solutions
    ------------------------------


  • 2.  RE: Beans & Automation Scripts
    Best Answer

    Posted 06-07-2020 15:57
    Since you're using a push button to invoke the script (an action launch point), if you're on 7.6.1 or higher you can take advantage of new functionality that was added to interact with the UI from an automation script. For example, to get the WebClientSession, all you need to do is call service.webclientsession()

    If you're not on 7.6.1 or higher, there's not an easy way to tie into this. You may see other online references to a UIContext, but that was added in 7.6.1 as well to support this.

    ------------------------------
    Steven Shull
    Projetech
    ------------------------------



  • 3.  RE: Beans & Automation Scripts

    Posted 06-08-2020 22:31
    Luckily we are on 7.6.1. Thank you Steven. It worked perfectly.

    ------------------------------
    vikky k
    Idyllic Solutions
    ------------------------------