From Maximo 7.1 on it is possible to use conditional UI properties to manipulate screen elements. I will show you how to change some properties of a text field based on a condition.
In this example, the field PERSON.DEPARTMENT will change its label, colors and input mode based on Job Code value (PERSON.JOBCODE) from People application.
The requirement is:
If Job Code is INTERNAL, the PERSON.DEPARTMENT field must be green with white value and required:
If the Job Code has any other value, the PERSON.DEPARTMENT field must be blue with white value and label changed to “Company”, also with input mode set as required.
Getting our hands dirty
First thing is to create a new Condition in “Conditional Expression Manager” application. This is self explanatory (if not then ask me).
Now, in application designer, open PERSON app and select the PERSON.DEPARTMENT field.
Go to Advanced tab in the control properties configuration and choose a Signature Option:
I am using READ as signature option for this example, but you should create your own, because the UI rule is replicated to other elements using the same Signature. To create a new Signature Option, you can easily do it through select action.
After filling the Signature Option field, click on “Configure Conditional Properties” button:
Select the Security group (or groups) that the rule will apply.
Next, select the condition previously created. In our case “1002”.
Now, for the magic trick to work, you must fill the property values for the condition (true and false):
cssclass is used to define the color of the button’s background and its value (use a blank space between the values).
inputmode to set the field as required and label changes the field display title.
If you want to know more about some other properties, check this out:
IBM – property values
Check the following link to see more style options for the screen elements:
Ibm – styles for properties
This small piece of knowledge useful might be. If it is not, then my time I wasted, young padawan.