CMDBuild Forum

Class references

Hi there, I am trying to reference a class but I can only reference an attribute “Description”. Could you help me how and where I need to go to setup refrences on any other field. Thank you very much. Petr

It is normal that when you create a reference field on another card, to select the related card the system shows the Description field.
If you want different information to appear you can automatically set the Description field via database trigger and then set the Description field as “hidden”.

1 Like

Hi support,

  • I created 2 classes: Class_A with an attribute Name_A
  • and Class_B with an attribute Name_B
  • I made the “Description” hidden
  • I also created a domain
  • And referenced attribute Name_A on Class_B
  • But it seems that it is still refferencing the “Description” field.
  • Where exactly do I need to say what class attribute will be the default one? is that within a Domain? or somewhere else? Thank you very much. P.
    image

A reference attribute never links a card to an attribute of another card, but only a card to another card.
Then by convention the other card is always represented by its Description system attribute.

1 Like

Hi, could I kindly ask if there are any changes to the new CMDBuild version 3.3. in terms of being able to only reference a class attribute called as “Decription”? I went through the admin 3.3 manual and could NOT find any major changes to this… Thank you very much for your answer.
k.r. Petr

For now, no change on this aspect.
However, you can always make the Description attribute hidden and fill it through database trigger with a concatenation of the data you prefer.

1 Like