How to set the default value of a field in Maximo

There are five ways to set the default value of a field in Maximo.

Database Configuration

The first way is to set the default value at the database level using Database Configuration.
All you have to do is the object and then the attribute for which the default is to be set. In the right hand side of the Details section there is a Default field. This is where you would enter your literal value for the default value.
Some system constants can be used:
Note: These system defaults can be used only in Database Configuration.


Application Designer

The second way to set a field default in Maximo is by using a Default Object in Application Designer.
Launch Application Designer and select the application in which you want to set a default.
From the Select Action menu, select the Toggle/Show All Controls option.
Select the Tab of the application the field exists on.
Select the Control Palette icon and drag and drop a Default Object object to the section the field you want to set the default on exists in.
Highlight the defaultvalue… and select the Control Properties icon.
Enter the attribute for the field you want to set the default value for, this value can be found by looking at the properties for the field. Also enter the default value for the field.
Save and test your application...


APPFIELDDEFAULTS Table

The third method requires the use of a SQL tool. There is an APPFIELDDEFAULTS table in Maximo which allows you to set a default by application, group and/or user. The object and default values are required, but you can then specify a certain app that uses that object or security group or user you want to have a particular default value.
Once your record(s) are inserted in the APPFIELDDEFAULTS table, you will need to restart the Maximo application server for your changes to take effect.
See this IBM technote.


Java

Any example?


Script

If you are running on TPAE 7.5 you have the scripting alternative.
Go To > System Configuration > Platform Configuration > Automation Scripts
Create Script with Object Launch Point.

New Script

Paste the following script.

from psdi.mbo import MboConstants
mbo.getMboValue("SITEID").setValue("GLOBAL", MboConstants.NOACCESSCHECK | MboConstants.NOVALIDATION)



Labels: , , ,