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="user-content-Ticket">
<target_class>Project</target_class>
or
<class id="user-content-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',
// 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
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="user-content-Ticket">
<target_class>Project</target_class>
or
<class id="user-content-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="user-content-Ticket">
<target_class>Project</target_class>
<fields>
<field id="user-content-Program" xsi:type="AttributeText" _delta="define">
<sql>program</sql>
<default_value>
<is_null_allowed>true</is_null_allowed>
</default_value></field>
<field id="user-content-Handover" xsi:type="AttributeDate" _delta="define">
<sql>handover</sql>
<default_value>
<is_null_allowed>true</is_null_allowed>
</default_value></field>
<field id="user-content-Completion" xsi:type="AttributePercentage" _delta="define">
<sql>completion</sql>
<default_value>
<is_null_allowed>true</is_null_allowed>
</default_value></field>
<field id="user-content-Comments" xsi:type="AttributeText" _delta="define">
<sql>comments</sql>
<default_value>
<is_null_allowed>true</is_null_allowed>
</default_value></field>
</fields>
<presentation></presentation></class></classes></itop_design>
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