Menu

Add custom fields to PMP light Version: 1.0.5

Davide
2021-08-09
2021-09-06
  • Davide

    Davide - 2021-08-09

    Hi everyone,
    I need to create and manage custom fields in PMP light extension.
    Have read and trying to apply tutorial https://www.itophub.io/wiki/page?id=3_0_0%3Acustomization%3Aadd-attribute-sample I don't find class called Project (Project) when installing my extension.
    Analyzed class workflow seems that this class is under "Ticket" class but I'm no totally sure cause I also find the class called Deliverables(WBS).
    So first of all I'm in doubt:
    1) Which is the correct class to be used to have this fields in main summary page ?
    <class id="Ticket">
    <target_class>Project</target_class>
    or
    <class id="WBS">
    2) I don't understand in my case which file I need to copy and paste in my custom extension to add the presentation section.
    3) my xml and php</class></class>

    <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"> <classes> <class id="Ticket"> <target_class>Project</target_class> <fields> <field id="Program" xsi:type="AttributeText" _delta="define"> <sql>program</sql> <default_value> <is_null_allowed>true</is_null_allowed> </default_value></field> <field id="Handover" xsi:type="AttributeDate" _delta="define"> <sql>handover</sql> <default_value> <is_null_allowed>true</is_null_allowed> </default_value></field> <field id="Completion" xsi:type="AttributePercentage" _delta="define"> <sql>completion</sql> <default_value> <is_null_allowed>true</is_null_allowed> </default_value></field> <field id="Comments" xsi:type="AttributeText" _delta="define"> <sql>comments</sql> <default_value> <is_null_allowed>true</is_null_allowed> </default_value></field> </fields> <presentation>

    Which file should be taken to be pasted here




    <menus>
    </menus>
    <user_rights>
    <groups>
    </groups>
    <profiles>
    </profiles>
    </user_rights>

    ---------
    
    <?php
    

    //
    // iTop module definition file
    //

    SetupWebPage::AddModule(
    FILE, // Path to the current file, all other file names are relative to the directory containing this file
    'Project-Attribute/1.0.0',
    array(
    // Identification
    //
    'label' => 'Project Attribute',
    'category' => 'business',

        // Setup
        //
        'dependencies' => array(
            'itop-config-mgmt/2.0.0'
        ),
        'mandatory' => false,
        'visible' => true,
    
        // Components
        //
        'datamodel' => array(
            'model.add-attribute.php'
        ),
        'webservice' => array(
    
        ),
        'data.struct' => array(
            // add your 'structure' definition XML files here,
        ),
        'data.sample' => array(
            // add your sample data XML files here,
        ),
    
        // Documentation
        //
        'doc.manual_setup' => '', // hyperlink to manual setup documentation, if any
        'doc.more_information' => '', // hyperlink to more information, if any
    
        // Default settings
        //
        'settings' => array(
            // Module specific settings go here, if any
        ),
    )
    

    );

    ?>

    I'm not a developer any suggestion to correct me or help me?
    
    Thanks in advance
       Davide
    
    </presentation></class></classes></itop_design>
     

    Last edit: Davide 2021-08-09
  • Davide

    Davide - 2021-09-06

    I found all solution to this thanks

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.