Menu

Unable to show newly created attribute on class Change

5 days ago
5 days ago
  • Jose Maria Ponce Garcia

    Hello,

    I tried to follow the tutorial to add a new field on a class. I added the field "criticidad" to the class Change. The new field is displayed on iTop datamodel viewer.

    I edited the datamodel.xxxxxx.xml but the toolkit didn't detect any change on the DB. Also tried putting all of the

    part of the datamodel.itop-change-mgmt.xml on my extension xml and adding the item criticidad with the redefine delta (like the tutorial explains).

    I don't know what I'm doing wrong.

    Someone can help me?

    Thanks.

    This is my datamodel file:

    <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0">
    <classes>
    <class id="user-content-Change" _delta="if_exists">
    <fields>
    <field id="user-content-criticidad" xsi:type="AttributeEnum" _delta="define">
    <values>
    <value id="user-content-baja">
    Baja
    </value>
    <value id="user-content-media">
    Media
    </value>
    <value id="user-content-alta">
    Alta
    </value>
    </values>
    <sql>criticidad</sql>
    <default_value>Media</default_value>
    <is_null_allowed>false</is_null_allowed>
    </field>
    </fields>
    <presentation>
    </presentation></class></classes></itop_design>


    <items>
    <item id="user-content-criticidad" _delta="define">
    <rank>85</rank>
    </item>
    </items>




     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 5 days ago

    Hint: Take a look at data/datamodel-production.xml . You need consistent names. For instance, you'd need to define the actual real ID of an existing class.

    Field IDs: for consistency, I just advise to keep them in English - and then just add a translation.

     

Log in to post a comment.