|
Creating Asset Subtypes
You can also create custom asset subtypes or customize the APM asset subtypes. You can enable auditing for a custom subtype and set up its Audit Info tab so that the actions performed on the subtype are displayed in the asset’s History view.To Create Asset Subtypes
2. Select the Customization Center view.
3.
4. Click Lock for Customization.Note: If a custom Asset class does not yet exist, you will need to create it first. Click New Custom Class and Based on APM Class. Select the Asset class and then click OK.Create the Subtype Class
6.
7. In the Subtype box, enter the name of your subtype and then click OK. For example, you might create a subtype called “AC Motor - Synch”. The Class window for the subtype appears.Add Attributes to the Subtype
9. Select the Custom Attributes tab.
10. For each attribute, click New. The Attribute dialog appears.
11. Enter the information for the attribute and click OK. The custom attribute appears in the list.Enable Auditing for the Subtype (Optional)
12.
13. Select Audit Changes to instances of this class to enable auditing.
14. Click Generate Audit Classes. APM creates the audit info and audit details classes that store auditing information for this class. These audit classes are also displayed in the list of customized classes.
15. On the Data to Audit tab, click Browse to select each data element that you want to record for this class. Click OK to close the dialog. The elements appear in the list.
16. On the Actions to Audit tab, click Browse to select each method that you want to record for this class and click OK. The actions appear in the list.Create Panels for the Subtype
17.
18.
20. In the Properties panel, select the Text field and enter a name for the subtype’s specification panel.
22. If you have enabled auditing for the subtype, you must also include the audit data in the user interface in order to view the audit changes in the asset’s History view. Add another panel and name it “subtype - Audit Info”, where subtype is the subtype name.
23. Add a notebook with the three tabs: By Event, By Data Element, and General. Design the pages according to APM standards for Audit Info panels.Tip: Open an existing asset subtype (for example, AC Motor) and use its Audit Info panel as an example.Associate the Subtype Panels to Asset Panels
25. In the Customization Center, open the custom Asset class. Click the Add menu and then Panel. The Forms Editor appears.
26. In the Join Path panel, select the join path to the new subtype (for example, SubType - AC Motor - Synch).
27.
29.
31. If you enabled auditing for the subtype, add a panel to appear on the History view. Click the Add menu and then Panel. The Forms Editor appears.
32. In the Join Path panel, select the join path to the new subtype (for example, SubType - AC Motor - Synch).
33.
35. In the Properties panel, select the Text field and enter a name for the Audit Info panel, for example “AC Motor - Synch - Audit Info”.Unlock the System
38. On the Customization Center, click Unlock System.The system displays a message stating that it will generate schema and cache files. Click OK. This could take a few minutes to complete.Note: If the system does not automatically generate the schema and cache, click Generate and then Schema, and Generate and then Cache Files in the Customization Center.Assign the Subtype to Asset Types
40. Click the Administration menu, Asset Management Settings, and then Asset Management. The Asset Management Settings dialog appears.
41. Select the Asset Types tab and double-click the asset type that will use the custom subtype. The Asset Type dialog appears. Click Edit.
42. Select the Specifications and Subtypes tab and select the custom subtype that you created.Tip: To support up to three default subtypes, click the appropriate settings in the Options area, including the subtypes.
44. In the Properties panel list, select the specifications panel that you created.
45.
46. To test this, create an asset and select the asset type that includes the new subtype. On the General tab, in a Subtypes box, select your custom subtype. The custom panel that you created should now be available in the asset’s Properties view. For example:Select the History view and the subtype’s Audit Info tab to test it.