Thursday, September 6, 2012

How to set default value in a field using the Application Designer

There are three ways in Maximo through which a default value can be set for a persistent field:

1. Using Field level custom class
2. Using Database configuration
3. Using Application Designer

The first method of using field level custom class requires someone to write a custom Java code and it involves the cost of maintenance and support.

The second method of using Database configuration is quite simple. However it is more heavy from the system perspective as it is directly forced on the database.

The third method is to use an Application Designer to set a field default value.

Here is an example to default the Quantity to 5.00 whenever a new item / material is associated to Workorder -> Plans -> Materials tab

1.  Navigate to Application Designer
2. Search for the application WOTRACK
3. Navigate to Plans -> Materials subtab
4. Click on Control Palette
5. Enable the "Hide" radio button
6. Drag the "Default Value" control to the section where the Quantity field is present



7. Open up the Properties for the "Default Value" control
8. Specify attribute as ITEMQTY (belonging to Object WPMATERIAL) and Value as 5.00 (The default value that needs to be set for the attribute)
9. Save changes in the Application Designer
10. To test - navigate to Workorder -> Workorder Tracking -> Plans -> Materials subtab
11.Click on New Row in Materials subtab. The default value of 5.00 is populated in the screen.

NOTE: To view an existing Default Value control, click on Select Action -> Toggle Show All Controls.

No comments:

Post a Comment