I assumed this was more of a one time action which is why I suggested the background approach. If you needed this to occur in bulk frequently, you could do an action automation script in 7.6.1.X and not have to refresh the records. I think you're stuck on 7.6.0.X though since it doesn't have a way to interact with the UI.
Something like below should give you what you need on 7.6.1.X. This script assumes you are going to have users manually select reports (using the select records) option instead of assuming they want to delete them all.
webSession = service.webclientsession()
resultsBean=webSession.getCurrentApp().getAppBean().getResultsBean()
reportSet=resultsBean.getMboSet()
selectedRecords=reportSet.getSelection()
# This assumes users are selecting specific records
if selectedRecords:
iterator=selectedRecords.iterator()
while iterator.hasNext():
reportMbo=iterator.next()
reportMbo.delete()
reportSet.save()
resultsBean.reset()
If you trust the people with access and want them to just filter down the list tab to the records involved, you could replace the logic with something like below. I would recommend at least doing an interactive prompt though to ensure they intend to do it as recovery will be very difficult otherwise.
webSession = service.webclientsession()
resultsBean=webSession.getCurrentApp().getAppBean().getResultsBean()
reportSet=resultsBean.getMboSet()
reportSet.deleteAll()
reportSet.save()
resultsBean.reset()
------------------------------
Steven Shull
------------------------------
Original Message:
Sent: Wed July 21, 2021 09:07 AM
From: Jason Verly
Subject: Deleting Reports More than One at a time
The challenge we've had with the default delete method is the List tab requires a manual refresh - at least in Maximo 7.6.0.x - after each deleted report. Otherwise the deleted report is still showing on the List tab, even after being deleted.
------------------------------
Jason Verly
Reliability Engineering Manager
Agropur US
Le Sueur MN
Original Message:
Sent: Tue July 20, 2021 03:40 PM
From: Brian Hobbs
Subject: Deleting Reports More than One at a time
We have a lot of garbage reports (1000's) in our system and using select action can only delete one at a time. I added this action so you can use it from the list view and select multiple reports, but it still only deletes a single report at a time. Is there a way to get it to do multiples?
Brian
------------------------------
Brian Hobbs
------------------------------
#Maximo
#AssetandFacilitiesManagement