Using iTop

Creating your iTop

iTop Customization

"How to" examples

User Interface

Automation & Ticket management

Portal Customization

:: Version 3.2.0 ::

How to differentiate homonyms

Prerequisite: You must be familiar with the Syntax used in Tutorials and have already created an extension.

Specify complementary attributes to differentiate homonyms
min version:

The iTop 3.0 brings new capabilities to differentiate homonyms, when editing an external key to a remote object.
If you are in read mode, just seeing the object friendlyname, then from iTop 3.1, you can add a summary card to address the same objective

It must be specified in XML on the class for which you want other attributes than the friendlyname to be displayed when selecting them in a drop-down list.
Here is an example of what can be done on the Person class and how it is displayed:

Now that you have seen the layout, here is how it can be done in XML:
Notice that there are more lines than needed for the modification, but this is to show what can be modified in iTop 3.0 datamodel

itop-design / classes / class@Person
          <attribute id="first_name"/>
          <attribute id="name"/>
        <complementary_attributes  _delta="force">
           <attribute id="email"/>
           <attribute id="org_name"/>
        <main_color/><!-- Main color for the class in css format.-->

Note that using the field org_id does display a number, rather useless for iTop users, so better specify org_name which is human readable.

It's possible to specify with a dictionary entry a format for the complementary fields, like this:

    <dictionary id="EN US" _delta="must_exist">
        <entry id="Class:Person/ComplementaryName" _delta="force"><![CDATA[%1$s - (%2$s)]]></entry>
3_2_0/customization/longname.txt ยท Last modified: 2024/06/20 17:28 (external edit)
Back to top
Contact us