I just want to import a class and a subclass via CSV. Importing the subclass (lets call it B for the example) just works fine, but when I try to import the Class (let's call it A) I always have an Error Message (null value in column IdClass). I have the feeling that the error comes from the code attribute of the class A, so I tried to fill it with different values related to the B subclass, but I keep having this error message.
Does it exists a step by step tutorial on importing CSV files (or someone patient) , cause the usual manual (pages 56 and followings) didn't helped me to understand the way to do it properly.
I don' t understand, but in addition to attributes that are inherited by the sub-class, the superclass hava also its own attributes. How do you import data for those attributes?
Seb
Previously Tecnoteca wrote:
You can't import a superclass.
In CMDBuild the superclasses can't have data, the normal classes include also attributes and data of the superclasses from which they inherit
My bad, I understood my mistake, everything's working fine now. Thanks for your help
Seb
Previously Seb wrote:
I don' t understand, but in addition to attributes that are inherited by the sub-class, the superclass hava also its own attributes. How do you import data for those attributes?
Seb
Previously Tecnoteca wrote:
You can't import a superclass.
In CMDBuild the superclasses can't have data, the normal classes include also attributes and data of the superclasses from which they inherit
My bad I understood my mistake. Everything is working fine now. Thanks a lot for your help.
I have a last question. I created a fake class to make some tests, and I want to delete this fake class now, but even if I deleted all the data inside when I try to delete the class I got an error message saying "cannot drop classes containing records" and the detail say that: ORM_CONTAINS_DATA.
What should I do to get rid of this class?
Seb
Previously Seb wrote:
I don' t understand, but in addition to attributes that are inherited by the sub-class, the superclass hava also its own attributes. How do you import data for those attributes?
Seb
Previously Tecnoteca wrote:
You can't import a superclass.
In CMDBuild the superclasses can't have data, the normal classes include also attributes and data of the superclasses from which they inherit
CMDBuildmanages thecompleteversioningof any changeto anycardstored in the database (TAB History); So evendeletions aresological andnotphysical,and this preventsthephysical removal of the class. A workaround forthe problem, ifin a classthere are noactive cards andifthe historical datacan be eliminated, is to runan SQL commandtodeletethe history table: truncate table"[classe]_history"; CMDBuild Team