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>
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',
Hi everyone,
<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>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>
Which file should be taken to be pasted here
<menus>
</menus>
<user_rights>
<groups>
</groups>
<profiles>
</profiles>
</user_rights>
//
// 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',
);
?>
Last edit: Davide 2021-08-09
I found all solution to this thanks