How to add new fields to PC
HDD Capacity, Serial numner, monitor Brand, monitor S/N, etc.
I follow the instruction to https://www.itophub.io/wiki/page?id=2_3_0:customization:add-attribute-sample (Adding a new field to the Server class) and it works fine, but please help me with tutorial step by step how to add new fields to PC class.
Thanks in advance!
Best regards to everyone, who help me!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dumping target doc - looking for 'PC'
An error occured while processing the PHP files of the data model:
Error loading module "PCready": /itop_design/classes/class[PC] at line 6: could not be found - Loaded modules: dictionaries,core,application,Monitor-module,PCready
Check the PHP files describing the data model before running the toolkit again !
How to add new fields to PC
HDD Capacity, Serial numner, monitor Brand, monitor S/N, etc.
I follow the instruction to https://www.itophub.io/wiki/page?id=2_3_0:customization:add-attribute-sample (Adding a new field to the Server class) and it works fine, but please help me with tutorial step by step how to add new fields to PC class.
Thanks in advance!
Best regards to everyone, who help me!
Perhaps give it a shot based on that tutorial, and share the work, so we can see where you get stuck?
I use itop 2.4 . When I use sample-module, which was generated from https://www.itophub.io/wiki/page?id=2_3_0%3Acustomization%3Adatamodel#creating_a_module and check the datamodel.pcready.xml (which is located in root directory/itop/extensions/pcready) with toolkit v2.3 error looks like this:
Dumping target doc - looking for 'PC'
An error occured while processing the PHP files of the data model:
Error loading module "PCready": /itop_design/classes/class[PC] at line 6: could not be found - Loaded modules: dictionaries,core,application,Monitor-module,PCready
Check the PHP files describing the data model before running the toolkit again !
datamodel.pcready.xml source code:
<itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
<constants>
</constants>
<classes>
<class id="user-content-PC">
<fields>
<field id="user-content-notes" xsi:type="AttributeText" _delta="define">
<sql>notes</sql>
<default_value>
<is_null_allowed>true</is_null_allowed>
</default_value></field>
</fields>
</class>
</classes>
<user_rights>
<groups>
</groups>
<profiles>
</profiles>
</user_rights>
</itop_design>
Last edit: radoslav yovev 2021-01-03