Hello,
I want to customize "Impact" menu.
I want to add one more option and change default value (in my case "A person" is more suitable value).
I try to find something about this in the forum with no luck.
Is it ordinary extension build or something more complicated as I see Impact is link with Urgency.
Any help will be very much appreciated
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Are you refering to the possible values of the UserRequest.impact enum field ?
If so yes this is easy, but indeed you'll have to write your own customization module. See Customizing iTop [iTop Documentation]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Thank you for the reply.
What I want is to add one more value - "Organization" and set default value from "Department" to "Person".
I'm aware that I have to write extension for this but can not find where impact enum fields are defined. What I found was their ID's.
Can you help with this?
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm worried your concern is to find where the field definition is : don't ever modify iTop core files, as it will prevent you from update ! By writing a custom module you'll be able to keep your customizations !
In this module you'll need to write an XML file stating which class and field you'd like to customize. To find out those 2 informations, the datamodel viewer (Administration / Data Model) is your best friend !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm not trying to modify iTop core files - I want to find that part of XML file where this is define to copy it on new extension that I want to create. I'll try to figure it out via Data Model.
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Vincent,
Thanks for the reply.
I've already find this but there are only ID's.
I want to add another value for Impact drop-down menu - "Organization" and to set default from 1 to 3 (person).
The only "a person" description I find HERE
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
IDs are translated into label through dictionaries
It can be done in XML as well, there is a Tuto on this.
The XML provided file is where the enum field and its values are declared. For adding a value to an enum, be cautious in 3.0, that Tutorial is out of date, the enum XML format for declaring values has changed. I will need to update the tutorial, but not now as I am about to go on vacations...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I want to customize "Impact" menu.
I want to add one more option and change default value (in my case "A person" is more suitable value).
I try to find something about this in the forum with no luck.
Is it ordinary extension build or something more complicated as I see Impact is link with Urgency.
Any help will be very much appreciated
Cheers
Hello,
Are you refering to the possible values of the UserRequest.impact enum field ?
If so yes this is easy, but indeed you'll have to write your own customization module. See Customizing iTop [iTop Documentation]
Hello,
Thank you for the reply.
What I want is to add one more value - "Organization" and set default value from "Department" to "Person".
I'm aware that I have to write extension for this but can not find where impact enum fields are defined. What I found was their ID's.
Can you help with this?
Thank you
Hello,
I'm worried your concern is to find where the field definition is : don't ever modify iTop core files, as it will prevent you from update ! By writing a custom module you'll be able to keep your customizations !
In this module you'll need to write an XML file stating which class and field you'd like to customize. To find out those 2 informations, the datamodel viewer (Administration / Data Model) is your best friend !
Hello,
I'm not trying to modify iTop core files - I want to find that part of XML file where this is define to copy it on new extension that I want to create. I'll try to figure it out via Data Model.
Cheers
Here maybe
Hi Vincent,
Thanks for the reply.
I've already find this but there are only ID's.
I want to add another value for Impact drop-down menu - "Organization" and to set default from 1 to 3 (person).
The only "a person" description I find HERE
Cheers
IDs are translated into label through dictionaries
It can be done in XML as well, there is a Tuto on this.
The XML provided file is where the enum field and its values are declared. For adding a value to an enum, be cautious in 3.0, that Tutorial is out of date, the enum XML format for declaring values has changed. I will need to update the tutorial, but not now as I am about to go on vacations...