Hi everyone,
Is it possible to change the origin categories (mail, monitoring, phone and portal) or are these hard coded?
Best regards, Johnathan
Hi, It is defined in the UserRequest Datamodel, you can add a new extension, and do something like this with the datamodel to add new one:
<?xml version="1.0" encoding="UTF-8"?> <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"> <classes> <class id="UserRequest" _delta="merge"> <fields> <field id="origin" xsi:type="AttributeEnum" _delta="merge"> <values _delta="merge"> <value id="[CUSTOM]" _delta="define">[CUSTOM]</value> </values> </field> </fields> </class> </classes> </itop_design>
hello dlp At the time of editing the datamodel ._. xml and copying this code gives me the following error.! so create "creating a module", can it be by dependency?
Thanks for the information dlp! The code that you have posted is what I was looking for, but I can't seem to implement it.
I created a new file inside datamodels\2.x\itop-request-mgmt-itil\ and called it datamodel.itop-add-request-origin.xml.
In the new xml file I added the following
<?xml version="1.0" encoding="UTF-8"?> <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"> <classes> <class id="UserRequest" _delta="merge"> <fields> <field id="origin" xsi:type="AttributeEnum" _delta="merge"> <values _delta="merge"> <value id="Manual" _delta="define">Manual</value> </values> </field> </fields> </class> </classes> </itop_design>
After that I restarted Apache and tried it out without succes.
Am I doing something wrong?
In fact, it doas not work like that. You need to creat a new extension : https://wiki.openitop.org/doku.php?id=2_1_0:customization:start
And then, you need to install it by using the setup.
Could you help me a little more please? where I place my datamodel.my-module.xml so that it starts. I have toolkit in my itop tks
That makes sense. Thanks for helping me out.
John Delgro,
To make any customization, you need to execute the toolkit
Could you help me a little more please? where I place my datamodel.my-module.xml so that it starts. I have toolkit in my itop
Hello, There are some tutorials in the official documentation you should follow, this will give you all the informations you'll need to create your own modules : https://www.itophub.io/wiki/page?id=2_4_0%3Acustomization%3Astart#by_writing_your_own_extension
check here https://sourceforge.net/p/itop/discussion/1113906/thread/f09c4483/
I need to continue on this post. We would like to add a field as well but the error message
Error loading module "new-origin": /itop_design/classes/class[UserRequest] at line 6: could not be found
still occur.
This is how my custom extension xml looks like:
<?xml version="1.0" encoding="UTF-8"?> <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.6"> <constants> </constants> <classes> <class id="UserRequest" _delta="merge"> <fields> <field id="origin" xsi:type="AttributeEnum" _delta="merge"> <values _delta="merge"> <value id="walk-in" _delta="define">walk-in</value> </values> </field> </fields> </class> </classes> <menus> </menus> <user_rights> <groups> </groups> <profiles> </profiles> </user_rights> </itop_design>
Did I miss something?
Cheers Shorty
This look like a dependency problem, does your "new-origin" module depends on itop-request-mgmt-itil or itop-request-mgmt
Instead of delta="merge" you should use "must_exist" in your case
doesn't work. But I will created a new post for this problem
Log in to post a comment.
Hi everyone,
Is it possible to change the origin categories (mail, monitoring, phone and portal) or are these hard coded?
Best regards,
Johnathan
Hi,
It is defined in the UserRequest Datamodel, you can add a new extension, and do something like this with the datamodel to add new one:
hello dlp
At the time of editing the datamodel ._. xml and copying this code gives me the following error.!
so create "creating a module", can it be by dependency?
Last edit: Francisco Vega 2018-05-17
Thanks for the information dlp!
The code that you have posted is what I was looking for, but I can't seem to implement it.
I created a new file inside datamodels\2.x\itop-request-mgmt-itil\ and called it datamodel.itop-add-request-origin.xml.
In the new xml file I added the following
After that I restarted Apache and tried it out without succes.
Am I doing something wrong?
In fact, it doas not work like that.
You need to creat a new extension : https://wiki.openitop.org/doku.php?id=2_1_0:customization:start
And then, you need to install it by using the setup.
Could you help me a little more please? where I place my datamodel.my-module.xml so that it starts. I have toolkit in my itop
tks
That makes sense. Thanks for helping me out.
John Delgro,
To make any customization, you need to execute the toolkit
Last edit: Francisco Vega 2018-05-08
Could you help me a little more please? where I place my datamodel.my-module.xml so that it starts. I have toolkit in my itop
Hello,
There are some tutorials in the official documentation you should follow, this will give you all the informations you'll need to create your own modules :
https://www.itophub.io/wiki/page?id=2_4_0%3Acustomization%3Astart#by_writing_your_own_extension
check here https://sourceforge.net/p/itop/discussion/1113906/thread/f09c4483/
I need to continue on this post. We would like to add a field as well but the error message
still occur.
This is how my custom extension xml looks like:
Did I miss something?
Cheers Shorty
This look like a dependency problem, does your "new-origin" module depends on
itop-request-mgmt-itil or itop-request-mgmt
Instead of delta="merge" you should use "must_exist" in your case
doesn't work. But I will created a new post for this problem