We're updating the issue view to help you get more done. 

Problem with CONSTANT in multipart_id_numbering

Description

Hi,

I am trying to set up a particular multipart ID numbering scheme, where the object identifiers are formatted as following:
ID1, ID2, ID3, ... ID1000, ...

The "ID" part would be a constant, while the numeric part would be a serial auto increment.

I edited the format in multipart_id_numbering.conf as follows:

ca_objects = {
_default_ = {
separator =,

elements = {
id_prefix = {
description = _(ID),
type = CONSTANT,
value = ID,
},
object_number = {
type = SERIAL,
description = _(Object number),
editable = 0,
table = ca_objects,
field = object_id, // tried idno as well here
sort_field = idno_sort
}
}
}
},

However, i'm getting an error when trying to save the object:
http://grab.by/b1E2

Isn't this supposed to work? Am I missing something?

Thanks for the feedback!

Environment

None

Activity

Show:
Sven Decabooter
October 8, 2011, 2:26 AM

Formatting of my code got messed up.
See attachment.

User known
October 10, 2011, 1:55 AM

Try setting the separator to an actual character. The checks won't work properly if there's no separator (aka "delimiter") since there's no way to divide up the string into pieces.

Sven Decabooter
October 10, 2011, 1:58 AM

Hi,

I already tried using a dot as separator, but that didn't seem to work properly.

Sven Decabooter
October 10, 2011, 2:04 AM

Ok i take that back...
Seems to work now anyway.

Only thing is it always shows an exclamation mark next to the "ID" text, which is a bit weird... but at least it works.

User known
October 22, 2011, 12:17 AM

The exclamation (error) mark issue has been fixed in SVN. There are also now tool tips with the error message when an actual error occurs. Long overdue...

Assignee

User known

Reporter

Sven Decabooter

Labels

None

Components

Affects versions

Priority

Major
Configure