Maximo Wire - The IBM Maximo Help & Discussion Forum
May 22, 2012, 11:01:13 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: Autonumber Generation Customization Help Required  (Read 506 times)
0 Members and 1 Guest are viewing this topic.
NDROCKS
Newbie
*

Karma: 1
Posts: 15


View Profile
« 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
Logged
maurogrz
Global Moderator
Full Member
*****

Karma: 14
Posts: 111



View Profile Email
« Reply #1 on: March 02, 2011, 05:14:03 pm »

You can customize the Mbo class overriding the generateAutoKey() method.

I don't know if it is the right way to resolve the problem, because if the number is dependent from a field of the PM record, it can be changed until the save() and the autonumbering is made by maximo on the add() method.

Maybe a solution is to create a new custom field that is a the combination of the two fields, but it is not the "service ID".....

Mauro
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!