CMDBuild Forum

Issues with REFERENCE field

Hi,

sorry for bothering but somehow I have a problem with a REFERENCE field.

I created a domain, selected it as REFERENCE field in the class. In the datamanagement module I now create a new card, get a dropdown list to select from possible referenced values, press safe - and nothing is displayed. I expected to see the referenced value like in a lookup field, the values are actually there, but not saved.

Bug?

Regards, Thomas

 
This is not a known bug
I suggest you do a check on the
CMDBuild online demo, and if everything works as you expect, to compare the reference attribute configuration.
CMDBuild Team
Hi Thoma,
 
Please ensure you have populated the code and description of the referenced cards.
 
Thanks,
Renga
 
Previously Thomas wrote:

Hi,

sorry for bothering but somehow I have a problem with a REFERENCE field.

I created a domain, selected it as REFERENCE field in the class. In the datamanagement module I now create a new card, get a dropdown list to select from possible referenced values, press safe - and nothing is displayed. I expected to see the referenced value like in a lookup field, the values are actually there, but not saved.

Bug?

Regards, Thomas

 

Previously Renganathan wrote:

Hi Thoma,
 
Please ensure you have populated the code and description of the referenced cards.
 
Thanks,
Renga
 
Previously Thomas wrote:

Hi,

sorry for bothering but somehow I have a problem with a REFERENCE field.

I created a domain, selected it as REFERENCE field in the class. In the datamanagement module I now create a new card, get a dropdown list to select from possible referenced values, press safe - and nothing is displayed. I expected to see the referenced value like in a lookup field, the values are actually there, but not saved.

Bug?

Regards, Thomas

 

Hi,
I just took a view into the demo and compared it to my current setting. It'a actually comparable, no difference in the way the reference is used. In my first attempt I inserted values without a CODE value, just the description. I cleared (deleted) all values and imported values once again.
Strange is, that I really see the correct value, the only problem is that whenever saved, it disappears, the reference is not saved to its card. The domain is setup as in the demo version. I really don't get it, why it won't work.
Maybe I should create two new classes once again with a new domain.
Btw, how do you people handle obsolete classes, domains, etc.? I recognized that when setting up a new CMDB you make a lot of errors, but you can't get rid of classes and domains because even data is deleted, CMDBuild won't let you delete an attribute, etc. This is somehow disappointing. I.e. I have a class with an attribute reference, no data inserted. Deleting the attribute isn't possible, pressing "Delete attribute" ends without any error or success message. Deleting the domain isn't possible because of the reference. The cat is biting its own tail.
Regards, Thomas
 
Regarding the first question is a good idea to try start again with two new classes.
Regarding
the second question we never begin to create a new data model in CMDBuild without first draw (and recheck) the complete E-R model with all its details, using any database design tool. This just helps to avoid the problems that you described.
CMDBuild Team