If you want to use an IBA attribute in the OIR, either to auto-enumerate or to use it as a source for number or whatever, you should include it in the list of attributes manipulated by the OIR.
It is done by includding its value in the file:
with the xconfmanager command.
In Reply to Steven Bugros:
Ok thanks Mike for the info and your time.
The fact that there are 2 number generator definitions is because there is a "boolean branch" instruction included as well.
This boolean branch will check an expression and if the outcome is true, first <arg> line is used, otherwise the second.
So in this case if the validation returns 'true', the number will be generated as a 10 digit number with preceeding '0' (as also explained inother reactions). If it returns 'false' the number will be a 5-digit one. The sequence number itself though comes from the samedatabase sequence as the instruction calls the same sequence called 'WTCHANGEORDERID_seq'.
What the real validation expression actually is, is defined in the <attr> line just below the booleanbranch statement. In this case it calls for an ID "template.templated" which unfortunately I don't recognize, but makes me think that the OIR is checking if the object is created from a template or not. And if so, the number is 10-digit, if not the number is 5-digit.
Jan Van Koetsem
PLM Consultant / SAVACO