Menu

Add custom field like brand

Vincenzo K
2023-02-01
2023-02-01
  • Vincenzo K

    Vincenzo K - 2023-02-01

    Hello everyone!

    i'm looking for add custom field with "add only" feature like Brand, what is the best way?

    field dependency like model and brand isn't needed.

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-02-01

    By creating an extension to add a new class in iTop based on "Typology"; and then referring to this typology from the class (e.g. PC) where you want to use it from. On this class, you'd need to add an AttributeExternalKey pointing to your new typology class and add it to the presentation tags.

     
    • Vincenzo K

      Vincenzo K - 2023-02-01

      Already done but my code seems not work. the field does not show on PC CI

      can you share a sample new Typology class?

       
      • Jeffrey Bostoen

        Jeffrey Bostoen - 2023-02-01

        Sure. https://github.com/jbostoen/itop-jb-modelconfiguration

        ( This one depends on model though, the use case was that we often had a PC of a certain brand/model but with slightly different configuration )

         

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.