Adding a Combo Box to a Field in MAXIMO Release 5

来源:互联网 发布:中国网络作家村 编辑:程序博客网 时间:2024/04/30 05:22

Overview : The purpose of this document is to provide instructions on adding a combo box dropdown to a field in MAXIMO 5.x

A combo box is a drop down list that displays all of the values of a valuelist when the launch button for the list is clicked.

This example will provide steps for adding a value list to the WOPRIORITY column of the WORKORDER table to then set up a combo box on the WO Priority field of Work Order Tracking.

Steps:
1. Launch Control Center and connect as user MAXIMO.
2. Launch Application Setup from the Administration module.
3. Select a module from the Overview list in this example we will select WO for the Work Order module.
4. Select the Value list tab.
5. From the Actions menu select the option Create Value List...
Note: A dialog box will appear, it will allow the user to name the list, add a description, select what type the list should be, the data type, length and scale of the list. Be sure to create a type 2 value list (with description). Also be sure to create a value list that is the same data type and length as the field it is being assigned to, or configure the field's datatype to match that of the value list.
In MAXIMO 5.1 a combo box will only display the description for the valuelist value in the combo box, however, the corresponding valuelist value will be written to the database for that record when the decription is selected and the record is saved.
You may want to include the value in the description when creating the valuelist to increase ease of use for the user.
6. Once the Create Value List dialog box has been filled out, click OK, then enter values and descriptions for the list.
7. Save the value list.
8. Select Assign and Deassign Value Lists... from the Actions menu.
9. Select the value list created in step 6 from the dropdown and click the Assign button.
10. Select the WORKORDER table and WOPRIORITY column and Save.
11. Exit Application Setup and select Yes when prompted to reset the Control Center.
12. Modify the wotrack/main.jsp page to change the WO Priority field to a combo box.
13. Open the wotrack/main.jsp page in a text editor.
Find and modify the line of code for the WO Priority field by changing the <psdi:textinput tag to <psdi:combo box
The line of code should now read:
<psdi:combobox label="WO Priority:" gridrow="2" gridcol="5" mbosetid="rec" mboattribute="wopriority" />

14. Save the changes and rebuild the EAR files.
 

原创粉丝点击