Menu

Cannot add fields to a Class

2022-11-17
2023-03-10
  • Javier Galdeano Rodríguez

    iTop version: 3.0.2
    Toolkit version: 3.0.0

    Hey! So I've just started using iTop (installed it today), and I was just adding some fields to a class, following this tutorial:

    https://www.itophub.io/wiki/page?id=latest:customization:add-attribute-sample

    Thing is that, after following this steps, already executed the setup to include the new module, there's no field added to the creation of Servers.

    I've attached my code. The item I was trying to add is "Notes" (so the tutorial does).
    Did someone had the same problem?

    Thanks.

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-11-17

    It may depend on the compilation order as well. First of all, it's recommended to add a dependency to the module in which "Server" is originally defined.

    Second, feel free to exclude about every node in the XML which already exists if you're only changing parts.

    Third, in the presentation where you added "notes": add the delta, eg

                                            <item id="notes" _delta="define">
                                                            <rank>40</rank>
                                                        </item>
    
     
  • Javier Galdeano Rodríguez

    Hey! I've tried second and third ideas you gave me yesterday. How can be the first one done? How can I add a dependency to the module in which "Server" is originally defined?

    Thanks for the help.

     
  • Javier Galdeano Rodríguez

    I'm sending you the error I've come into. It makes sense it has to do with compilation order somehow. Where's the file to modifiy the order? How can I solve the problem?ç

    (Image's been attached)

    Thanks!

     
  • Pierre Goiffon

    Pierre Goiffon - 2022-11-18

    Hello,
    Indeed you have a dependency problem.
    Check your module.*.php file and compare your code with the sample code of the tutorial (https://www.itophub.io/wiki/page?id=latest:customization:add-attribute-sample#final_customization_module)

     
  • Carlos Anguiano

    Carlos Anguiano - 2023-02-17

    Hi, I am experiencing the same situation, I am unable to add 2 fields to the incident class, any help on this matter would be greatly appreciated, I am new with iTop and struggling with this process....

    Best regards.

    I include a word file with the steps performed....

     
    • Pierre Goiffon

      Pierre Goiffon - 2023-03-10

      Hello,
      You should have created a new topic as asked in the previous thread you joined :( ([0355f72b90])

      Anyway
      Can you check the datamodel viewer to see if the fields are present in the object ? (Administration / Data Model menu)

       

      Related

      Discussion: 0355f72b90


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.