THE BPD Blog

From blogs to case studies to news, we love sharing our tips and tricks for asset management, cloud, IoT and smarter operations.

by | Feb 1, 2017

Assigning a Domain to an Attribute Dynamically Using Automation Scripts in Maximo 7.6

I recently ran into a scenario where a WORKORDER attribute has a table domain but the “validation where clause” of that domain should be different between the different applications.  I needed two domains and assigned them dynamically based on the application name using a new feature in Automation Scripts which turned out to be super easy!

  1. Create an attribute automation script, set the “Events” to “Retrieve List”
  2. In the source code use the implicit attribute “domainid” to assign a domain to your attribute. My code looked like this:

if app == “APP1”:
domainid = “DOMAIN1”
else:
domainid = “DOMAIN2”

Be careful when using the implicit “app” attribute. It only returns a value if your script runs against the same object as the main object of your application. So, if your script is against WORKORDER object and it is triggered because of an action in a work order based app (WOTRACK, PLUSDWOTRK etc.) then it will return the app name. But let’s say your script is based on LABTRANS object and it got triggered in WOTRACK. Because the script object is different from the main object of the app, the “app” will return null.

Adel Rustum

Adel Rustum

Adel has been providing consultancy services for Maximo since 2011, tackling everyday user reported issues, implementing solutions, developing new functionality, and making recommendations on using industry best practices. He has international experience in working with clients of different industries, and currently he is based out of BPD's office in Calgary, AB, Canada.

0 Comments

Custom servlet in Maximo

Custom servlet in Maximo

What is a servlet? Servlets are Java classes which service HTTP requests and implement the ‘javax. servlet. HttpServlet’, an abstract class that implements the servlet interface and is specially designed to handle HTTP requests. A  servlet accepts the request,...

9 Recommendations For A Successful SAP & IBM Maximo EAM Interface

9 Recommendations For A Successful SAP & IBM Maximo EAM Interface

Integration is often a key component for getting the most out of your critical IT applications. Modern Enterprise Asset Management systems such as IBM Maximo are designed for integration which can expand their capabilities and allow the flexibility that the industry...

How to call a Report directly from the Action Menu in IBM Maximo

How to call a Report directly from the Action Menu in IBM Maximo

In IBM Maximo, it’s possible to add a direct print option to a report. This adds a printer icon to the toolbar and allows you to run the report with just one click. But for reports where there are parameters required before running, this is not possible… Usually, a user will have to click the “Run Reports” action, then find their report in the list of all reports available for that application. They then click on the one they want before being taken to the IBM Maximo Reports Request page. In this blog I’ll show you how to get around that problem. in our example we use an Action launch point for an Automation Script and link it to a menu item in IBM Maximo Application Designer…

Helpful tips to remember when starting a Maximo Implementation

Helpful tips to remember when starting a Maximo Implementation

After nearly 20 years of implementing Maximo for various organisations across a myriad of industries, there are some basic design principles that I like to follow on a new (greenfield) Maximo installation. Please note that these are some of my personal preferences but...

Implementing Drill-through in a BIRT report

Implementing Drill-through in a BIRT report

More often than not, we may be working with a report which lacks all the necessary details about a particular Work Order or asset. In this instance, we need to access Maximo and retrieve the relevant record to obtain the information we are after. Wouldn’t it be so...

Sign up to our free newsletter to explore emerging technologies, industry events and Maximo best practice.

Come with BPD Zenith to the future of Asset Management

Partner Ecosystem

BPD Zenith partners with a diverse array of the world’s top Technology, Business and Solution Integration leaders.