CMDBuild Forum

Problem with Reference Attribute

Hello,

I have created two classes(class1 and class2) with some attributes and I create a domain. In the domain the class1 is the origin and the class2 is the destiny and the cardinality is 1:N.

After, I create one attribute in class2 that reference the domain.

Until here it seems that everything is OK.

The problem is when I create a card for class2 in the Data management module I'm not able to list the items in class1 in the attribute when I click in the "down arrow", if I click in the "magnifying glass" I get the list of items in the class2 and i can select them, but when I click save the item is not visible in the card field, if I click save in the card it allow me to save if the field is not mandatory. 

When I go to the relations TAB I can see that the relation is OK, but in the relation Graph are missing information, I get in the map some "undefined" and in the scheda some attributes with "org.cmdbuild.dao.entry.IdA...", I can't see it all.

I'm using Version 2.1.6.

Can anyone help me to discoverer what seems to be the problem, probably some thing I have missed?

Thanks all for your attention and replies.

Márcio Lopes

When, from class 2, you have to choose in the reference attribute a card of class 1, the system displays a list filled with the “Description” values of each card of class 1.
Have you filled the Description attribute in the cards of class 1 ?
CMDBuild Team

Previously Tecnoteca wrote:

When, from class 2, you have to choose in the reference attribute a card of class 1, the system displays a list filled with the "Description" values of each card of class 1.
Have you filled the Description attribute in the cards of class 1 ?
CMDBuild Team

 

That's the problem, I have inactivate the attributes Code and Description, so I was not filling the description.

 

I filled it and it works ok.

 

Tanks for the help.

 

Márcio

 

Hello everybody
 
I have the similar issue.
When I go to the relations TAB I can see that the relation is OK or see the attribute on TAB ferefence data is OK  but in the scheda some attributes with "org.cmdbuild.dao.entry.IdA...", I can't see it all.
 
Is this a bug?
 
i'm using version 2.3.3
 
https://www.dropbox.com/s/7fozriojt6eazuc/1.jpg
 
Regards
 
Previously Márcio wrote:

Hello,

I have created two classes(class1 and class2) with some attributes and I create a domain. In the domain the class1 is the origin and the class2 is the destiny and the cardinality is 1:N.

After, I create one attribute in class2 that reference the domain.

Until here it seems that everything is OK.

The problem is when I create a card for class2 in the Data management module I'm not able to list the items in class1 in the attribute when I click in the "down arrow", if I click in the "magnifying glass" I get the list of items in the class2 and i can select them, but when I click save the item is not visible in the card field, if I click save in the card it allow me to save if the field is not mandatory. 

When I go to the relations TAB I can see that the relation is OK, but in the relation Graph are missing information, I get in the map some "undefined" and in the scheda some attributes with "org.cmdbuild.dao.entry.IdA...", I can't see it all.

I'm using Version 2.1.6.

Can anyone help me to discoverer what seems to be the problem, probably some thing I have missed?

Thanks all for your attention and replies.

Márcio Lopes

 

The same answer as above. Have you filled the Description attribute in the cards of class 1 ?

CMDBuild Team

 

 

yes my friend. I had reviewed before writing.
regards.
 
Previously Tecnoteca wrote:

The same answer as above. Have you filled the Description attribute in the cards of class 1 ?

CMDBuild Team

 

 

 

I have the same issue with the Lookup type attribute.
On Card details i see fine but  in the scheda i see the attribute with "org.cmdbuild.dao.entry.IdA..."
 
Please see the next screenshot.
 
https://www.dropbox.com/s/asbq3xah1qgeoth/cmdb1.jpg
 
Regards
 
 
 
 
 
Previously Tecnoteca wrote:

The same answer as above. Have you filled the Description attribute in the cards of class 1 ?

CMDBuild Team

 

 

 

 
From your screenshot I have realized that the problem is not in the standard CMDBuild interface, but in the relations graph.
This is a known problem, but it will not be solved because in the next version CMDBuild 2.4 (next month) the relations graph will be completely rewritten.
CMDBuild Team