Menu

Change Origin

2015-04-24
2023-01-23
  • John Delgro

    John Delgro - 2015-04-24

    Hi everyone,

    Is it possible to change the origin categories (mail, monitoring, phone and portal) or are these hard coded?

    Best regards,
    Johnathan

     
  • dlp

    dlp - 2015-04-24

    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>
    
     
    • Francisco Vega

      Francisco Vega - 2018-05-17

      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
  • John Delgro

    John Delgro - 2015-04-28

    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?

     
  • dlp

    dlp - 2015-04-28

    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.

     
    • Francisco Vega

      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
      tks

       
  • John Delgro

    John Delgro - 2015-04-28

    That makes sense. Thanks for helping me out.

     
  • Anilton F. de M. Junior

    John Delgro,

    To make any customization, you need to execute the toolkit

     
    • Francisco Vega

      Francisco Vega - 2018-05-08
       

      Last edit: Francisco Vega 2018-05-08
    • Francisco Vega

      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

       
  • Shorty1

    Shorty1 - 2023-01-23

    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

     
  • Vincent @ Combodo

    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

     
    • Shorty1

      Shorty1 - 2023-01-23

      doesn't work. But I will created a new post for this problem

       

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.