NDROCKS
Newbie
Karma: 1
Posts: 15
|
 |
« on: February 28, 2011, 10:44:24 am » |
|
Hi All,
I have a customized application of raising internal employees' official requests to managers for leave, etc. and to service providers like HR, Finance or helpdesk for some service of function to be performed.
My requirement is to generate a service ID based on the service provider selected. For example, if one has selected the service provider as HR, the service ID should start with SR as prefix followed by a number say, 1001. So, the next generated service ID for some request raised for HR services should be SR1002. If helpdesk service is requested, the service ID should start with HP1001.
I tried with Autonumber generation with Autokeys, but only one prefix can be supplied in this case. With the attribute SERVICEID in my MBO, I had associated one autokey SERVICENO with prefix NT and seed 1000. And all my service ids have started with NT. Based on different service provider selection, how can I call different autokeys?
Or, is there any other way of resolving my problem?
Regards, ND
|