I am too have the same requirements. :)
Original Message:
Sent: 11-21-2023 02:43
From: Andreas Brieke
Subject: MSUG - Automation Scripts in Maximo Application Suite
Hi Steven,
Sad, but not the worlds end :) I know that i can gain access to UI via service.webclientsession(), but i still need a mbo for it. I had a usecase in mind where i added an action to the list of an application, but this can't fire if no mbo is shown. Some of our users were confused when clicking on that button just did nothing and gave no answer. (This was an "Approve all SR" in VIEWAPPRSR)
------------------------------
Andreas Brieke
SVA System Vertrieb Alexander GmbH
Original Message:
Sent: 11-20-2023 14:50
From: Steven Shull
Subject: MSUG - Automation Scripts in Maximo Application Suite
These hooks are for the existing bean class events where you couldn't tie an automation script before. There's no need for this to add a new event. You can create an ACTION launch point automation script and interact with the dialog, call bean methods, etc. This is a poor example but this is an action launch point automation script example of how to get the databean from a dialog, determine the records selected in that dialog, copy them over to a field (in a real-world example, this should add to a one to many object), and then close the dialog.
session=service.webclientsession()
databean=session.getDataBean("emxselassets_table")
if databean:
assetSet=databean.getMboSet()
assetList=[]
selectedRecords=assetSet.getSelection()
if selectedRecords:
iterator=selectedRecords.iterator()
while iterator.hasNext():
assetMbo=iterator.next()
assetList.append(assetMbo.getString("ASSETNUM"))
mbo.setValue("EMXSELECTEDASSETS",",".join(assetList),mbo.NOACCESSCHECK)
service.closeDialog()
------------------------------
Steven Shull
IBM
Original Message:
Sent: 11-17-2023 03:48
From: Andreas Brieke
Subject: MSUG - Automation Scripts in Maximo Application Suite
Hi Steven,
many thanks for your presentation, there were some really interesting topics in it.
I have one question regarding the AppBean-Scripts i forgot to ask: If i have a script for e.g. ASSET APPBEAN.ASSET, can i only use/"overwrite" the existing functions like initialize or can we also create custom functions, like ... "cxAndreasWantsToDoAddACustomActionToUI"?
Regards,
Andreas
------------------------------
Andreas Brieke
SVA System Vertrieb Alexander GmbH
Original Message:
Sent: 11-14-2023 07:23
From: MORE Community Manager
Subject: MSUG - Automation Scripts in Maximo Application Suite
Following the successful completion of the Maximo Solutions User Group (MSUG) event, we are pleased to announce that recordings from each session will be made available to the community for extended engagement and discourse. We invite members to submit any further inquiries they may have for the speakers in the space provided below.
Session: Automation Scripts in Maximo Application Suite
Presented by: @Steven Shull, IBM
Access the Recording: https://register.gotowebinar.com/recording/9000796134191766017
Summary: Steven discusses automation scripts, focusing on new functionality and features added to the Automation Script framework in recent years. He mentions the importance of serviceability and the potential issues that can arise from mistakes in script development. He highlights new system properties that can help handle these issues, such as automatically closing sets and deactivating all automation scripts for troubleshooting. Steven also discusses additional sources for attachments, the ability to interact with bean classes, testing automation scripts, and the warning framework that helps identify problems in scripts. He provides examples and mentions useful resources for further information.
#MaximoApplicationSuite #automationscripts
#MaximoUserGroups
#MORECommunityWebinar
#MaximoUserGroups
#MORECommunityWebinar
------------------------------
MORE Community Manager
MORE Maximo
------------------------------