A table that contains inventory information for a particular asset type is handled differently than other types of tables. An inventory table is created in the Asset Type Window. (The application also automatically creates a class codes table to categorize the items in inventory when the inventory table is created.) Once this is accomplished, the names of the inventory and class codes tables will appear in the Tables window. You may then create windows to display the data from these tables along with supporting status and PM windows if desired.
Use following steps to create an inventory and other supporting windows:
- Open the Asset Types window and enter the name of the inventory table for the asset type as described in Create an Asset Type.
- Open the Tables window.
- In the Tables tab, locate the record for the class codes table for the asset type. Right-click this record and select Apply Changes. The class codes table now exists in the database.
- In the Tables tab, locate the record for the inventory table for the asset type. Right-click this record and select Apply Changes. The inventory table now exists in the database.
- If your application uses LRS transactions, you must create an inventory details table that is associated with the inventory table. (For applications that do not use LRS transactions, it is optional whether you create an inventory details table.) To create an inventory details table, perform the following steps:
- In the Tables tab, right-click and select Insert. The application displays a dialog box.
- Click the radio button beside New.
- Click the arrow for the drop-down list and select Inventory Details.
- In the lower part of the dialog box, enter the internal name of the new table in the text field. This name must end in _INVEN_DET.
- Click OK. The application closes the dialog box and adds a new record to the table.
- In the new record, enter the name of the new table in the Table Label column and, optionally, any additional information in the Comments column.
- Click the Columns tab. This tab shows the default columns for the table.
- Right-click the table in the Columns tab and then select the appropriate command: either Add New Column if the column does not exist in the database or Add Existing Column if the column does exist.
- Repeat the previous step for each column.
- If desired, click the Index tab and create an index for the table.
- Click the Tables tab.
- Right-click the record for the new table and select Apply Changes. The application now creates the table in the database with the columns specified in the Columns tab.
- Click the icon.
- In the list of tables, find the record for the inventory table. Right-click this record and select Make Window. The application displays a new window. The default selection in the dialog box is to create an inventory window.
- Since the inventory table option is already selected, just click Next. The application displays a second new window.
- In the second new window, check that the window title is what you want. If necessary, modify the title as desired. (The Editable? check box is already selected as is appropriate.)
- In the lower part of the dialog box, expand the menu hierarchy to locate the parent menu item under which a new menu item for all windows (inventory, class codes, status, etc.) associated with the asset type will be placed.
- Right-click the parent menu item and select Add Branch. The application displays a new dialog box so you may enter the name of the menu item.
- In the dialog box, in the New Menu ID field enter the internal ID for the menu item under which the menu items to open all the windows associated with the asset type will appear. (This ID should be lower case and not contain spaces.) Also, in the New Menu Name field, enter the name of the menu item that will be displayed in the menu hierarchy.
- Click OK to close the dialog box. A new node is added subordinate to the parent menu item you right-clicked in step 10. Note: The application automatically selects this node, so you will need to de-select it to continue.
- Click the square beside the name of the new menu item to remove the check mark from it.
- Right-click the new menu item created in step 10 and select Add Branch. The application displays a new dialog box so you may enter the name of the menu item that will display the inventory window for the asset type.
- In the dialog box, in the New Menu ID field enter the internal ID for the menu item that will open the inventory window. (This ID should be lower case and not contain spaces.) Also, in the New Menu Name field, enter the name of the menu item that will be displayed in the menu hierarchy.
- Click OK to close the dialog box. A new node is added subordinate to the menu item you right-clicked in step 12. This node is automatically selected, which is appropriate this time.
- Click OK. The window and menu item for the display of the asset type's inventory is now created. If you created an inventory details table that is associated with the inventory table, the system automatically splits the inventory window into two panes (the upper pane shows inventory information and the lower pane shows the details). Otherwise, the window is not split.
- Now create a status window to categorize the items in inventory. To start, right-click the record for the inventory table and select Make Window. The application displays a new window.
- The Main radio button is already selected as required, so click the down arrow to display the list and select Status Window.
- Click the Next button. The application displays a second new window.
- In the second new window, check that the window title is what you want. If necessary, modify the title as desired. (The Editable? check box is already selected as is appropriate.)
- In the lower part of the dialog box, expand the menu hierarchy to locate the menu item created in step 10 under which all windows associated with the asset type will be placed.
- Repeat steps 12 through 15. The Status window and menu item are now created.
- If you would like to perform PM activities on items in inventory, you may create a PM by Inventory window and menu item as described in the following steps:
- Right-click the record for the inventory table and select Make Window. The application displays a new window.
- The Main radio button is already selected as required, so click the down arrow to display the list and select PM by Inventory.
- Click the Next button. The application displays a second new window.
- In the second new window, check that the window title is what you want. If necessary, modify the title as desired. (The Editable? check box is already selected as is appropriate.)
- In the lower part of the dialog box, expand the menu hierarchy to locate the menu item created in step 10 under which all windows associated with the asset type will be placed.
- Repeat steps 12 through 15. The PM by Inventory window and menu item are now created.
- In various windows of the application, you may select a portion of a map and display information for items of a selected asset type that fall within the selected area. If you would like to have this capability for this particular asset type, perform the following steps:
- Right-click the record for the inventory table and select Make Window. The application displays a new window.
- Click the Popup radio button. The Popup list field is activated.
- Click the down arrow to display the list and select Inventory Popup.
- Click the Next button. The application displays a second new window.
- In the second new window, check that the displayed information is correct. Modify or add any information that is needed.
- Click OK to complete the process.
- You now need to create the window and menu item to display the information in the class codes table that is associated with this asset type's inventory. Locate the record for the class codes table, right-click this record, and select Make Window. The application displays a new window. The default selection in the dialog box is to create a class codes window.
- Since the class codes table option is already selected, just click Next. The application displays a second new window.
- In the second new window, check that the window title is what you want. If necessary, modify the title as desired. (The Editable? check box is already selected as is appropriate.)
- In the lower part of the dialog box, expand the menu hierarchy to locate the menu item created in step 10 under which all windows associated with the asset type will be placed.
- Right-click the menu item and select Add Branch. The application displays a new dialog box so you may enter the name of the menu item that will display the class codes window.
- In the dialog box, in the New Menu ID field enter the internal ID for the menu item that will open the class codes window. (This ID should be lower case and not contain spaces.) Also, in the New Menu Name field, enter the name of the menu item that will be displayed in the menu hierarchy.
- Click OK to close the dialog box. A new node is added subordinate to the menu item you right-clicked. This node is automatically selected, which is appropriate.
- Click OK. The window and menu item for the display of the asset type's class codes is now created.
- If you would like to perform PM activities on items in inventory by using class codes, you may create a PM by Class Codes window and menu item as described in the following steps:
- Right-click the record for the class codes table and select Make Window. The application displays a new window.
- The Main radio button is already selected as required, so click the down arrow to display the list and select PM by Class Code.
- Click the Next button. The application displays a second new window.
- Repeat steps 26 through 31. The PM by Class Code window and menu item are now created.
The process for creating inventory and associated windows and menu items is now complete.