Maximo Wire - The IBM Maximo Help & Discussion Forum
May 22, 2012, 11:21:00 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: How to get DB Sequence value in Maximo Code?  (Read 1021 times)
0 Members and 1 Guest are viewing this topic.
j_4jamshaid
Newbie
*

Karma: 2
Posts: 38


View Profile
« on: April 29, 2008, 12:31:32 pm »

My ticket table's ticketID is value from some sequence. when i create a ticket using MEA Webservice its asks me to enter TicketID. and if i enter an id that is already in the table, my request updates that record. I want to add a new record every time, I guess i would need a sequence for this ticketID. Now how can i use sequence Using maximo Api? Or can i configure this field in maximo to get value automatically from a sequence?

There is another field ticketUID which is autogenerated. and it works fine if no ticketUID is entered.

@Jamshaid..
Logged
amdisuk
Administrator
Full Member
*****

Karma: -1
Posts: 199


allandonaldson@hotmail.com
View Profile WWW
« Reply #1 on: April 29, 2008, 04:59:37 pm »

You would do an add(); on the Mboset. This will set up the defaults for you including all unique id's.

So first you getMboSet("TICKET");

Al
Logged

Big Al
j_4jamshaid
Newbie
*

Karma: 2
Posts: 38


View Profile
« Reply #2 on: April 30, 2008, 05:30:10 am »

well may be ur right. But i need to do it with MEA webservices.
Logged
g000fy
Newbie
*

Karma: 1
Posts: 1


View Profile
« Reply #3 on: February 10, 2011, 07:37:19 am »

I know this is an old forum but based on the fact there is very little doco about this stuff thought I would post the answer I found.  The ticket table which stores service requests, incidents, complaints etc does not have an autokey on ticketid.  Maximo is not expecting you to add data to the table directly.  Instead you should be using the views that correlate to each class in the ticket table.  For example the SR (Service request) view is the one you should base your integration object on.  If you look in database configuration for the SR view you will see that ticketid has autokey on it.  This means you do not need to send the ticketid element in your XML.
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!