atzemaej Hi Atzemaej, I am unsure what is going wrong for you. It sounds like it's letting you save, just giving you a warning? Are you able to share a screenshot of the warning? I do notice in your example, the comma at the end of each element is missing, but this might have been a copy/paste issue.
The only thing I would suggest is changing your config to use the PARENT element at the front and all the others (with exception of the serial) become root_only = 1
.
This means each record first inherits the ID from the parent record, then adds a serial to the end. Benefit of this, is you can have more than one level of child and it will keep adding another serial element for each level.
This is assuming of course that you want all chid records to inherit the parent id as the first element.
EG.
elements = {
parent_id = {
type = PARENT,
description = _(Parent record id)
},
type = {
type = LIST,
values = [OBJ, MUS, RSC, GEN],
default = OBJ,
width = 3,
editable = 1,
root_only = 1,
description = _(Type)
},
qualification = {
type = LIST,
values = [N, O, A, S],
default = N,
width = 2,
editable = 1,
root_only = 1,
description = _(Qualification)
},
year = {
type = YEAR,
width = 4,
editable = 1,
root_only = 1,
description = _(Year)
},
number = {
type = SERIAL,
width = 3,
description = _(Number),
editable = 1
}
}