For your first question, that's changing with Work Centers where they're designed to be stateless and retrieve data from the Maximo system via REST API. But with the legacy UI as you've mentioned a refresh won't trigger a refetch of the record. As a stateful application, the server is maintaining the MBOs (and corresponding MBOSETs) for tracking records that have been modified and how they've been modified. When you use the "Find", what you're really doing is adjusting the where clause the application uses and resetting that set to contain only those MBOs. It's not really a "refresh" in that sense.
For your second question, you probably could create an action automation script that does what you want but my experience with UI work is limited. I've done some simple navigation from one record to another using the below (replacing UNIQUEID with the ID of course).
webSession=service.webclientsession()
webSession.getCurrentApp().getAppBean().moveToUniqueId(UNIQUEID)
And this works to navigate to a new record (including records that aren't part of your set) but doesn't seem to work in the simple refresh scenario. I think you'd have to get the AppBean's find() function to work somehow or at least mimic some of what they're doing. The function is designed around the WebClientEvent being the user utilizing the find, which won't be the case here (it'll be the user invoking your action), so that might be tricky to make it work. But implementing a subset of it seemed to work well for me.
appBean=webSession.getCurrentApp().getAppBean()
resultsBean=appBean.getResultsBean()
resultsBean.resetQbe()
resultsBean.getMboSet().ignoreQbeExactMatchSet(False)
resultsBean.setUserWhere("")
resultsBean.setQbe("workorderid","="+str(mbo.getUniqueIDValue()))
resultsBean.reset()
resultsBean.next()
resultsBean.getMboSet().ignoreQbeExactMatchSet(True)
------------------------------
Steven Shull
Director of Development
Projetech Inc
Cincinnati OH
------------------------------
Original Message:
Sent: Tue April 20, 2021 11:21 PM
From: User1971
Subject: Refreshing a record in Maximo (in the browser)
MAM 7.6.1.2; Google Chrome 89.0.4389.128 (64-bit):
I have a WO open in WOTRACK. The WO has been modified by some other process, so I want to refresh it in the browser so that I can see the latest data.
Intuitively, since there isn't a refresh button in Maximo, I would hit refresh in the browser, and it would show the updated record. But if I do that, the browser just produces the same old snapshot of the record that I was looking at previously. (And a hard refresh (Ctrl + F5) doesn't work either.)
Instead, I need to drag the WONUM from the Work Order tab, drop it into the Find Work Order text box, and click the search button. This seems to be the only way to properly refresh the record.
While that technique works, it is not intuitive for new Maximo users.
1. Why doesn't Maximo refresh when the browser refreshes?
2. Why can't there be a refresh button that achieves the same thing as the drag & drop technique above?
Thanks.
#Maximo
#AssetandFacilitiesManagement