Adding custom fields to the Asset View
Asset forms to add custom fields
For the Asset view, you can add custom fields to the specific asset type form:
Business service | Computer system | Equipment | Hardware | Network | Other | Software |
---|---|---|---|---|---|---|
AST:BusinessService | AST:ComputerSystem | AST:Equipment | AST:CDROMDrive | AST:AdminDomain | AST:Account | AST:Application |
AST:Mainframe | AST:Card | AST:Cluster | AST:Activity | AST:ApplicationInfrastructure | ||
AST:Printer | AST:Chassis | AST:CommunicationEndpoint | AST:BusinessProcess | AST:ApplicationService | ||
AST:DataBaseStorage | AST:ConnectivityCollection | AST:ConcreteCollection | AST:ApplicationSystem | |||
AST:DiskDrive | AST:ConnectivitySegment | AST:Document | AST:BIOSElement | |||
AST:FloppyDrive | AST:IPConnectivitySubnet | AST:LogicalSystemComponent | AST:DataBase | |||
AST:HardwarePackage | AST:IPEndpoint | AST:PhysicalLocation | AST:DiskPartition | |||
AST:HardwareSystemComponent | AST:IPXConnectivityNetwork | AST:Role | AST:FileSystem | |||
AST:Keyboard | AST:LANEndpoint | AST:ServiceOfferingInstance | AST:OperatingSystem | |||
AST:LocalFileSystem | AST:LNsCollection | AST:Transaction | AST:Package | |||
AST:Media | AST:LAN | AST:Patch | ||||
AST:Memory | AST:NTDomain | AST:Product | ||||
AST:Monitor | AST:NetworkPort | AST:ResourceAllocationSettingData | ||||
AST:PointingDevice | AST:ProtocolEndpoint | AST:Share | ||||
AST:Processor | AST:WAN | AST:SoftwareServer | ||||
AST:Rack | AST:SystemSoftware | |||||
AST:RemoteFileSystem | AST:VirtualSystemEnabler | |||||
AST:ResourcePool | AST:VirtualSystemSettingData | |||||
AST:SystemResource | ||||||
AST:TapeDrive | ||||||
AST:UPS |
To know more about how asset forms work, see Asset-forms-and-their-hierarchy.
Hierarchy of asset forms
Before you can effectively plan adding any custom fields or importing asset data from external sources, you must understand the hierarchy of forms. Depending on which form you add the custom field to, the field is inherited by forms that are lower in the hierarchy.
The following graphic explains the hierarchy of forms by using the example of forms representing a computer system:
From the example graphic, you can understand the following aspects of the hierarchy:
- BMC.CORE:BMC_ComputerSystem is a join form that inherits fields from the BMC.Core:BMC_BaseElement form and the BMC.CORE:BMC_ComputerSystem_ form.
To understand this hierarchy better, download and view the CDM Diagram available at BMC CMDB Common Data Model Diagram. - AST:ComputerSystem form inherits fields from the BMC.CORE:BMC_ComputerSystem and the AST:Attributes form.
If you add any custom fields to the AST:Attributes form, you can add them to the other asset forms.
To add fields to an existing asset UI
For Asset Management Console, there is a single form that displays all asset classes. However, in classic Smart IT views, there is one form in each class. In Progressive Web views, a specific section of the form can display class-specific attributes. These are held for each class in a simple additional form that is displayed seamlessly within the Asset form. The additional form is not needed if there are no class-specific attributes to be displayed.
Out of the box, these additional forms have been provided for the Computer System, Processor, and Applications asset classes. For any other class, you can display the additional attributes by creating this simple additional form.
- Open Developer Studio in the Best Practice Customization mode (the default).
- In AR System Navigator, expand All Objects, and double-click Forms.
- In the Filtering Options, enter the item name.
For example, AST:Application. - From the Form menu, click Create New View.
If Create New View is disabled, perform the following steps:- From the Form menu, click Create View Overlay.
- In the Developer Studio dialog box, click Yes.
- From the Form menu, click Create New View.
To open the view for which you want to add fields, click the required view at the bottom of the form.
For the computer system, processor, and application, the following views are available:Purpose
View name
To create asset types
SV_Attribute_Create
To view asset types
SV_Attribute_View
To edit asset types
SV_Attribute_Edit
- If you want to add an existing field from the Mid Tier asset form, from the Form menu, click Add/Remove Fields in View.
- Select the fields from the Fields not in View: list, and click >> to move fields to the Fields in View: list.
- Click OK.
- Click File, and then click Save.
The new fields are added to the progressive view and are displayed on the existing asset form.
To create custom form views for Asset Management
You can create new form views for use in a Progressive Web Application according to your requirements. Out-of-the-box forms for the following asset types are available:
- Computer system
- Processor
- Application
If you want to create UI for other asset types, you must perform the following tasks:
Task No. | Task |
---|---|
1 | |
2 |
To create a new Progressive Web Application view
- Open Developer Studio in Best Practice Customization mode (the default).
- In AR System Navigator, expand All Objects, and double-click Forms.
- In the Filtering Options, enter the item name.
For example, select AST:Printer, and then click Enter. - From the Form menu, click Create View Overlay.
- In the Developer Studio dialog box, click Yes.
- From the Form menu, click Create New View.
- From View Type, select Progressive.
- In the confirmation dialog box, click OK.
- (Optional) Add panels to the form as required.
For more information about panels, see Developing Progressive Web Applications. - If you want to add an existing field from the Mid Tier asset form, from the Form menu, click Add/Remove Fields in View.
- Select the fields from the Fields not in View: list, and click >> to move fields to the Fields in View: list.
- Click OK.
- Click File, and then click Save.
Depending on the purpose of the view, make sure you save the view with the following view names:
For more information about renaming views, see Developing a Progressive Web Application.Purpose
View name
To create asset types
SV_Attribute_Create
To view asset types
SV_Attribute_View
To edit asset types
SV_Attribute_Edit
To make the custom Progressive Web view available in Asset Management
You need admin permission to open the SHR:SV_TicketConfig form.
- Launch the browser and enter the URL: http://<hostName:portNumber>/arsys/forms/<serverName>/SHR:SV_TicketConfig.
hostName is the name of the web server where Mid Tier is running, and serverName is where AR System server is running. - From Ticket Type, select Configuration Item.
- Select the CI type for which you have created the new view.
- Click Search.
- From the result pane, select the appropriate record.
- Select the Asset Has Attributes check box.
- In Attributes Create VUI Name, enter SV_Attribute_Create.
- In Attributes View VUI Name, enter SV_Attribute_View.
- In Attributes Edit VUI Name, enter SV_Attribute_Edit.
Click Save.
The customized view is configured for the asset type.
To create an overlay for an existing Asset Management view
You need admin permission to open the SHR:SV_TicketConfig form.
- Create a new view as described in To create a new Progressive Web Application view.
- Ensure that you save a view name that is different from SV_Attribute_Create, SV_Attribute_View, and SV_Attribute_Edit.
For more information about renaming views, see Modifying form views - Launch your browser and enter a URL as follows: http://<hostName:portNumber>/arsys/forms/<serverName>/SHR:SV_TicketConfig.
hostName is the name of the web server where Mid Tier is running, and serverName is where AR System server is running. - From Ticket Type, select Configuration Item.
- From CI type, select the CI type for you want to create the overlay form.
For example, select Computer System. - Click Search to search for the record.
- From the result pane, select the appropriate record.
- In the Form Name field, enter the name of the form that you want to overlay.
For example, if in CI Type, the value selected is Computer System, select AST:ComputerSystem from Form Name. - Select the Asset Has Attributes UI check box.
- Select the Asset Has UI check box.
Click Save.
When the user opens the form for the CI type that you modified, the new configured form is displayed.
To add custom fields to the data model in BMC CMDB
- In BMC Helix CMDB, add the custom field to the data model.
For more information, see Common Data Model concepts and Managing the common data model. Perform the CMDB synchronization process, as described in Modifying form views and make sure to set the Has Asset UI option to Yes.
- Refresh the Smart IT cache as described in Clearing the server cache.
- Add the custom field in Smart IT; see Process of adding custom fields to Smart IT views.
Adding custom fields to Asset forms in Developer Studio
Each type of Asset has a Type-Specific Area to which you can add custom fields that are relevant to that Asset type. There is also a Generic Area into which you can add custom fields that apply to all assets. In the Screen Configuration, you can add custom fields to the asset view that are part of either the Generic Area or the Type-Specific Area of the Asset View of the AR System form.
Process overview for adding fields in Developer Studio
The following image displays an overview of the conditions for making the fields available for customization in the Asset View:
To add a custom field to the Generic Area of Asset View
- Add the field in the AST:Attributes form.
- Add the field in the AST:BaseElement form.
- Add the field to the related asset-specific form.
- Add the custom field in Smart IT.
To add a custom field to the Type-Specific Area of Asset View
- Add the field in the AST:Attributes form.
- Add the field to the related asset-specific form.
- Add the custom field in Smart IT.
To add a custom field to the AST:Attributes form
- Open Developer Studio in Best Practice Customization mode (the default).
- In AR System Navigator, double-click Forms under the All Objects option.
- In the Filtering Options, select AST:Attribute for the form name.
- Click the form name to open the form.
From the Palette menu appearing on the right side of the form, select the field type from the Data Fields group.
- Drag the field from the palette to the specific area of the form where you want to add the custom field.
- Modify field parameters according to the field requirements. Check the Field Properties section to set field properties such as permission etc. For more information about creating fields, see Creating and managing fields.
Save the form.
The following message is displayed:You have specified an id for following fields which is outside the BMC reserved range. Do you wish to continue?
<Field name>- Click OK.
To add custom fields to the AST:BaseElement form
- In AR System Navigator, double-click Forms under the All Objects option.
- In the Filtering Options, enter AST:BaseElement as the form name, and click the form name to open the form.
- Right-click the form.
- Click the Add Fields from AST:Attributes option.
- In the Add Fields dialog box, select the field that you added from the list and click OK.
- Save the form.
To add custom fields to the type-specific asset form
After you add a custom field in the AST:Attributes form, you must add it in the corresponding type-specific asset form AR System. For example, to add a printer-related field, you must add the field to the AST:Printer form.
- In AR System Navigator, double click on Forms under the All Object option.
- In the Filtering Options, enter AST:Printer as the form name, and click the form name to open the form.
- Right-click the form.
- Click the Add Fields from AST:Attributes option.
The field that you have added in the AST:Attributes form appears in the Add Fields dialog box. - Select the field and click OK.
- Save the form.
For more information about the asset-specific forms, see Adding custom fields to the Asset View.
Instructions for classic interfaces
Where to go from here
Transferring classic Smart IT configurations and definitions between servers