How to create a field in the Hardware Model to indicate Form Factor ?

prash4
Tera Expert

Hi, I recently got a requirement regarding add a field in the Hardware Model to indicate Form Factor.

This field should be located on the "information" tab of the Hardware Model record (cmdb_hardware_product_model). The right hand column only has two entries at present, this field could go below those, aligned with the 3rd field on the left column. This should be a drop-down field with a "none" option.
Choices for dropdown: Tower, Minitower, Small Form Desktop, All-in-one, Laptop, Tablet.

A quick and step by step procedure would really appreciate.

Thanks in Advance.  

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

Please follow the below steps:-

Go to the hardware form

right click on the top -> configure -> click on form layout

find_real_file.png

 

Once the form layout opens click on the information section

find_real_file.png

The selected portion will show all the fields already present on form

In the portion of create a new field , put the name Form factor and then click on Add

find_real_file.png

 

Once Add is clicked the new field will show in the Selected portion put it above the end split and then click on save

find_real_file.png

Then you will see the field on the form

find_real_file.png

 

 

 

Now to add the options right click on the field name-> configure dictionary

find_real_file.png

Then once dictionary opens scroll to the bottom you will have choice option must create the choices and in the choice field select dropdown with none so that the none is also an option

find_real_file.png

 

Please mark answer correct/helpful based on Impact

View solution in original post

4 REPLIES 4

Saurav11
Kilo Patron
Kilo Patron

Hello,

Please follow the below steps:-

Go to the hardware form

right click on the top -> configure -> click on form layout

find_real_file.png

 

Once the form layout opens click on the information section

find_real_file.png

The selected portion will show all the fields already present on form

In the portion of create a new field , put the name Form factor and then click on Add

find_real_file.png

 

Once Add is clicked the new field will show in the Selected portion put it above the end split and then click on save

find_real_file.png

Then you will see the field on the form

find_real_file.png

 

 

 

Now to add the options right click on the field name-> configure dictionary

find_real_file.png

Then once dictionary opens scroll to the bottom you will have choice option must create the choices and in the choice field select dropdown with none so that the none is also an option

find_real_file.png

 

Please mark answer correct/helpful based on Impact

Hello Saurav,

Thank so much really appreciate your help and quick response. 

Scott Halverso1
Mega Guru
Mega Guru

I'd push back on the customization if you are using HAMP.  HAMP introduced a field called Device type (cmdb_hardware_product_model.normalized_device_type). This field is a reference to the sn_hamp_hw_device_type table which gets its options populated from the Content Library, but also allows user defined options to be added by clients.

Going this route you may need to adjust the acl that controls this field as it makes it read only if customers aren't paying for a certain device in their HAMP subscription (e.g. Mobile Device, End User Computers, Servers, Network Gear)

You'll also want to adjust 4 UI Policies on that make this field read only if the normalization is fully normalized or partially normalized.

 

 find_real_file.png

Scott,

Wondering if you can answer a question based on the Device type field added in HAM. The organization I work with uses NIGP commodity codes. They haven't implemented HAM yet, just Procurement. They had an implementer add a table called commodity_codes so that when they submit a Purchase Order, the user has to identify the commodity code, which is then tied to the Product Model. In theory, with HAM, the Custom Device Type could replace this table, since it has the UNSPSC Commodity ID field in it, which would then tie back to the Product Model. So basically when a user wants to purchase a computer, they'd select a Product Model and instead of having to select / know the commodity code, they would pick just the model. Then the Device type would be set to the correct commodity code like 204-00 with the Name COMPUTER HARDWARE AND PERIPHERALS FOR MICROCOMPUTERS. The only caveat is that it seems you can only do a one to one relationship with the commodity code and CIs. What they are after is when they purchase something, the Model has the correct commodity code selected, which then would tie back to the vendor. The idea would be they would then be able to pull up a list of all vendors who supply these commodity codes and the list of items they provide. I don't know if that makes sense, but basically that's what we're after without having to have this separate table and ensuring things are done right. Thanks for any guidance you might have.