Hi all.
I have an INT database field representing an externally referenceable ID. I have my own internal ID field, so this is not the PK. The customer wants this to now be prefixed with a 3 character text string, to distinguish the ID from other systems.
I can think of three ways:
- Display layer (probably use events, pre-display and pre-write)
-This seems best, but I have four views for this table and it will require a lot of updates and maintenance
- Semi-Display layer (change select query to append upon selection, adjust event pre-write)
-This seems worst, because it is a hybrid solution
- Logic Layer (store Prefix + ID in the database)
-This seems ok, but the next ID is generated so I will have to strip the txt before calculating the maximum, and the prefix will be able to be updated to change the prefix
Does anyone have any other suggestions?
Thanks!