Hi
I need to put a new field on the MROParmObjectType table of type NumberSequenceCode so that I can define a different number sequence for the serial number on the MROObjectTable depending on the object type.
The issue I have is when I use the NumberSeq::newGetNumFromCode() method and pass in the number sequence code I get the error message "Number sequence does not exist" which is thrown from NumberSeq::newGetNumFromId(). I have debugged the code and can see that this line in newGetNumFromCode does not return a valid NumberSequenceTable record:
NumberSequenceTable::findByNaturalKey(_numberSequenceCode, _scope.getId()).RecId
Is there something else I need to do when setting up my number sequences? The number sequence I have setup is very basic; shared scope, one segment of ####, continuous.
Thanks,
Joe
*This post is locked for comments
I have the same question (0)