conditional expression

How to restrict allowed status changes for workorders

Maximo has a predefined set of statuses for work orders that are defined in the WOSTATUS synonym domain. The values and their meaning are well documented in the official documentation. Unfortunately the allowed state transitions are hardcoded in the psdi.app.workorder.WOStatusHandler class and cannot be easily changed since they are defined as private arrays. Here is a brief […]

How to make record readonly based on an attribute’s value

This entry is part of the Conditional Expressions HowTo. A very typical customization task is to make readonly some records of a specific table based on the value of an attribute.For example you may wish prevent the editing of purchase orders that have a total costs higher than 1000$ for a specific group. Here is […]

Custom condition Java class

Sometimes standard Conditional Expressions are not enough. Sometimes the logic to implement is too complex to be implemented using an SQL expression. In such cases Maximo allows to implement the condition logic in a custom condition class using Java. To implement a condition class you must extend psdi.common.condition.CustomCondition and override evaluateCondition and toWhereClause methods. Here is a […]

Variables for Dynamic Queries in Conditional Expressions

Conditional Expressions can be used in TPAE applications in several ways. One powerful feature of Conditional Expressions is the capability of creating dynamic queries using substitution variables. Here is the complete list of variables available in Maximo. :YES – True :NO – False :&DATE& – Current date :&DATETIME& – Current date/time :&USER& – Logged in user (or […]

How to make a attribute required using Data Restrictions

This entry is part of the Conditional Expressions HowTo. In this post I will show how to make required the remarks field of the MATRECTRANS object for returned items. This is just an example and the same configuration can be used to make a field mandatory based on a particular condition.A similar post describes how […]

Grant access to an action menu or toolbar button conditionally

This entry is part of the Conditional Expressions HowTo. In Maximo/TPAE menu items are granted per security group in the Security Groups application. Every option available for an application has a corresponding signature option (aka sigoption) record in the SIGOPTION table. Those SigOptions can be configured in the Application Designer. In this article I will […]

How to make a field readonly using conditional expressions

This entry is part of the Conditional Expressions HowTo. One of the most common Maximo customization scenarios is to make a textbox readonly based on some business rules. This could be easily achieved using Maximo/TPAE Conditional UI.As an example, I will describe how to make readonly the Priority in the Asset application when the asset […]

Hide data conditionally for a specific group

This entry is part of the Conditional Expressions HowTo. A very typical customization task is to restrict the visibility of data within Maximo/TPAE applications based on certain conditions.For example you may wish to hide all the purchase orders that have a total costs higher than 1000$ for a specific group. Here is a small tutorial […]

Scroll to top