Menu

iTop Data Model Customization

PeterB
2010-10-08
2012-12-19
  • PeterB

    PeterB - 2010-10-08

    I must admit I have not yet fully digested the contents of the 'Customizing iTop 1.0' document, but I already have two questions:
    - Can the data model (to a certain extent) be modified 'on the fly' without having to re-populate the database?
    - If I am going to introduce a couple of extra classes and/or attributes, how difficult am I going to make it for myself upgrading to a newer release of iTop?

     
  • Denis

    Denis - 2010-10-11

    The data model can be modified on the fly without reinstalling iTop or re-building the database. Just make sure that you adjust the database schema accordingly: for example if you change the possible values for an "enum", the MySQL DB schema must be updated. If you add a new field to an object, the DB schema must be updated. If you add new objects, the DB schema must be updated as well.

    Combodo has some tools to help you when doing such modifications, contact support@combodo.com if you want to benefit from them.

    Upgrading to a new version of iTop can be made transparent if your modifications consist in adding new objects to the iTop data model, as long as the new objects definitions are grouped together in a specific "module".

    If your modifications consist in adding new fields (or modifying fields) on existing objects, then you'll probably have to apply the same modifications again to the newer iTop classes before upgrading.

     
  • drmccollum

    drmccollum - 2010-10-15

    What are the steps necessary to add a field that's a lookup from another table? For example, if I wanted to add a lookup table for the server CI that allows you to select from a list of manufacturers.

     
  • drmccollum

    drmccollum - 2010-10-18

    I've done some playing around with this and it appears that you need to add the necessary fields in the db, a line in the model.itop-config-mgmt.php and the en.dict.itop-config-mgmt.php. The fields appear in the schema.php, but I can't get them to appear in the actual server data entry page. Any ideas as to what I'm doing wrong?

    I've even tried creating a new database with the setup and the new fields appear in the db, but not on the data entry pages.

     
  • PeterB

    PeterB - 2010-10-18

    @drmccollum, the MetaModel::Init_SetZListItems entries in the Class definition appear to control which fields to display for 'details', 'list', 'standard_search' and ádvanced_search'. Add your field in the appropriate array().

     
  • drmccollum

    drmccollum - 2010-10-18

    That was it. Thanks peterbruggeling!

     

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.