Add tab "Known Errors" to FunctionalCI

PTR
2013-09-04
2013-09-05
  • PTR
    PTR
    2013-09-04

    Hey,

    I'm trying to add a Tab (like the ones at the top of the Page of a CI -- Properties, Software, Documents etc...) to the FunctionalCI Class. The List should contain all the KnownErrors that are connected to this FunctionalCI.

    What I already did:
    - added a new extension to merge with the FunctionalCI class

    <?xml version="1.0" encoding="UTF-8"?>
    <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
    <classes>
        <class id="FunctionalCI" _delta="merge">
            <fields>
                <field id="knownerror_list" xsi:type="AttributeLinkedSetIndirect" _delta="define">
                    <linked_class>lnkErrorToFunctionalCI</linked_class>
                    <ext_key_to_me>functionalci_id</ext_key_to_me>
                    <count_min>0</count_min>
                    <count_max>0</count_max>
                    <ext_key_to_remote>error_id</ext_key_to_remote>
                    <duplicates/>
                </field>
            </fields>
            <presentation>
                <details>
                    <items>
                        <item id="knownerror_list" _delta="define">
                        <rank>350</rank>
                        </item>
                    </items>
                </details>
            </presentation>
        </class>
      </classes>
    </itop_design>
    

    The field "knownerror_list" seems to be added to the Class just fine. I can see it in my itop testinstall under Datamodel -> FunctionalCI and in the child classes, the tab just doesn't show up (looking at a Server since there is no instance of the FunctionalCI Class)

     
  • PTR
    PTR
    2013-09-05

    I got it working, by moving the <presentation> part to a specific child class (in this case the Server class). Now I have to do that to every class I want it to show up in.

    Is the presentation not inherited by the child class or am I doing it wrong?