Maximo

Maximo

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

 View Only
  • 1.  Refresh the UI to show updates

    Posted 03/30/26 11:55 AM

    Hi,

    I'm creating an automation script to update all the Tasks of a Work Order with the Asset of the Work Order.  I've created an action item, and the code that fires after the user clicks on the menu item seems to be adding the assetnum to each task line, as desired.

    The only problem is that the user doesn't see the changes in the UI until they hit the "Save" button.  I've tried a few methods to get the UI to refresh but nothing seems to work.

    Any ideas??



    ------------------------------
    BRIAN BULLA
    ------------------------------


  • 2.  RE: Refresh the UI to show updates

    Posted 03/30/26 03:58 PM

    Check out Jason's blog on a similar topic. You can use this to refresh your tasks table. - https://www.sharptree.io/blog/2022/2022-04-26-refresh-table/



    ------------------------------
    MANU MAGANTI
    EMA Canada| Inc.
    OAKVILLE
    ------------------------------



  • 3.  RE: Refresh the UI to show updates

    Posted 03/31/26 09:58 AM

    Hi Manu,

    Thanks for sending that.  Very helpful!!  Have you tried using that code yourself.  I've modified it to fit my scenario, yet I still cannot get that Task table to refresh.  It seems to crap out at "databean.refreshTable()", as my code never makes it to the final error message I put in for debug purposes.

    Any ideas??

    image
    image


    ------------------------------
    BRIAN BULLA
    ------------------------------



  • 4.  RE: Refresh the UI to show updates

    Posted 03/31/26 12:00 PM

    I have not but I found another more recent post from Bruno that references the blog above too. Try the control ID maybe? 

    https://bportaluri.com/2026/03/force-table-refresh-from-automation-script.html



    ------------------------------
    MANU MAGANTI
    EMA Canada| Inc.
    OAKVILLE
    ------------------------------



  • 5.  RE: Refresh the UI to show updates

    Posted 03/31/26 12:07 PM

    Thanks Manu.  Yes, I've tried a few different IDs, but still no luck.  I wonder if it's MAS v9.1 related??



    ------------------------------
    BRIAN BULLA
    ------------------------------



  • 6.  RE: Refresh the UI to show updates

    Posted 03/31/26 02:22 PM

    Are you able to open a PMR with IBM? Best to confirm. 



    ------------------------------
    MANU MAGANTI
    EMA Canada| Inc.
    OAKVILLE
    ------------------------------



  • 7.  RE: Refresh the UI to show updates

    Posted 04/16/26 08:19 AM

    Just as an update to this, magically it just started working one day.  No code changes.....perhaps something in the browser cache was not updating??  Not sure, but anyway....it's working now.  Thanks!



    ------------------------------
    BRIAN BULLA
    ------------------------------