Skip to content

Blog



Share this:

How to hide a field using conditional expressions

This entry is part of the Conditional Expressions HowTo. In this little tutorial, I will show how to dynamically hide the Total Cost field in the PR Lines tab of the Purchase Requisitions (PR) application for the PRs that are in status APPR. This is just an example and the same configuration can be used to hide or show any field based on a particular condition. Define conditional expression Open Administration - Conditional Expression Manager application. Create the following conditional expression.

Read more →

March 13, 2012

Analyze BIRT report performances and execution time

Some days ago I came across this interesting post from Pam Denny that describes the 80/20 rule. Based on this empirical rule 80% of the report processing is done by only 20% of used reports. That’s why I developed a simple SQL query that uses the LASTRUNDURATION field of the REPORT table to list the report that have the longest execution time. SELECT lastrunduration, reportname, description, appname, lastrundateFROM reportWHERE lastrunduration IS NOT NULLORDER BY lastrunduration DESC Running this query on a real Maximo production database I got the following figure.

Read more →

March 12, 2012

How to change the color of a field using conditional expressions

This entry is part of the Conditional Expressions HowTo. Here is a step-by-step guide about how to dynamically highlight workorders that have a high priority in the WOTRACK application. This is just an example and the same configuration can be used to change the color of a field based on a particular condition. Define conditional expression Open Administration - Conditional Expression Manager application. Create the following conditional expression.

Read more →

March 11, 2012

Query users and groups security

Did you have ever spent precious time searching in the Group Security application what group grants a specific permission to a certain user? Do you want to list all the sigoption granted to a specific user? Do you want to list all the groups to which a specific user belongs together with all the granted sigoptions? Do you want to know who has access to a specific application or sigoption? Here is a SQL query that may help you. It joins several tables and allows to answer all the previous questions… and many more.

Read more →

March 9, 2012

Search for NULL values in Maximo applications

Today I want to share with you a little tip that allows to search for empty (NULL) values in every Maximo/TPAE application. You can search for null and not null values by entering the following values into a search field on the Find tab: To search for a null value enter: null To search for not null values enter: != null If your keyboard does not have the tilde ‘~’ character you may type enter this character by typing 126 on your numeric keypad while pressing the ‘Alt’ key. Maybe this sound obvious to you but it was not easy to discover…

Read more →

March 3, 2012

Best way to loop through an MboSet

This entry is part of the Maximo Java Development series. In this article I will describe some common ways of iterating through an MboSet and what is the best approach. In the following examples mboSet is the already holding the MboSetRemote that you need to traverse. Example 1 (worst solution) for(int i=0; i<mboSet.count(); i++;){ MboRemote currMbo=mboSet.getMbo(i); ...} The MboSet.count() method will issue a SELECT COUNT(*) query to the database for each loop. This will seriously affect the looping performances with an unnecessary workload on the database server too.

Read more →

February 26, 2012

Formatting and converting data in Java

This entry is part of the Maximo Java Development series. If you need to format dates and numbers into a locale-sensitive string or if you just need to convert data between different types then take a look at psdi.util.MaxType class. For example, the following piece of code shows how to correctly format a currency amount into a string. MaxType mt = new MaxType(MaxType.AMOUNT);mt.setValue(10.1234);String s = mt.asLocaleString();

Read more →

February 19, 2012

Automatic login to Maximo UI

As a Maximo consultant I spend many hours on test and development systems developing customizations and testing business processes. This means I frequently login on Maximo Web UI with several users and passwords. I typically store the passwords in my web browser to speedup the annoying step but today I have found a better trick to directly jump into a Maximo application skipping the login page. This can be done providing the username and password in the URL used to connect to the web UI. Lets make some examples.

Read more →

February 17, 2012

How to migrate Maximo Administrative Workstation

This article explains a procedure that can be used to migrate the Maximo 7.1 Administrative Workstation from one physical system to another. Installation of products based on Maximo/TPAE infractructure (MAM, TAMIT, CCMDB, etc.), industry specific extension (Nuclear, Transportation, etc.) or fixpacks use the IBM Autonomic Deployment Engine. This is installed at the beginning of the installation of any Maximo product and is a core part of the Maximo Administrative Workstation component.

Read more →

February 15, 2012

Maximo REST APIs reference material

Legacy REST API The REST API are available in Maximo starting from version 7.5. Here is a collection of useful resources to learn how to use REST in Maximo. Official MAM REST API documentation RESTing with Maximo (developerWorks) Using REST API Details (developerWorks) Maximo REST API usage example NextGen REST API The official documentation for the ne OSLC REST APIs is available here: Maximo Integration and Scripting - IoT (ibm.com)

Read more →

February 14, 2012