Instead of simply having record ID's be from 1 to infinity, I want to identify records by a two letter then five number code.
Example:
TY00001, TY00289, or TY92341
I need the ID to generate leading zeros where required.
The two letter prefix would need to be defined in the .cfg file as other DB's would use their own prefixes.
i.e.
TY12345
BK54321
CD13579
TP97531
DV24680
VC02468
Etc ...
I tried simply adding the two letter prefix before {'ID'} in the add form but for add error form, modify form, and modify error form the prefix is added again each time the form is used. I could use an IF statement to limit the addition of the prefix to the add form only, but that wouldn't help with the leading zeros I'd like, requiring javascript assistance to fill in the zeros.
I'd prefer to modify the cgi to handle the creation of unique ID's according to my needs.
Any thoughts?
Thanks,
beetleman
Marcus L. Griswold
Example:
TY00001, TY00289, or TY92341
I need the ID to generate leading zeros where required.
The two letter prefix would need to be defined in the .cfg file as other DB's would use their own prefixes.
i.e.
TY12345
BK54321
CD13579
TP97531
DV24680
VC02468
Etc ...
I tried simply adding the two letter prefix before {'ID'} in the add form but for add error form, modify form, and modify error form the prefix is added again each time the form is used. I could use an IF statement to limit the addition of the prefix to the add form only, but that wouldn't help with the leading zeros I'd like, requiring javascript assistance to fill in the zeros.
I'd prefer to modify the cgi to handle the creation of unique ID's according to my needs.
Any thoughts?
Thanks,
beetleman

Marcus L. Griswold