You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Peoplesoft

3 replies [Last post]
Guest's picture
Guest

Hi all,

There is a field Trasaction_id on a page.
When page is build the transaction id should default to 'NEW' and once i click on a run button for the next subsequent build, new transaction id in sequence should replace 'NEW'. like trn001 , trn002 & so on ..

Can anybody help on this ?

Ashar's picture
User offline. Last seen 5 years 1 week ago. Offline
Joined: 03/26/2008
Posts: 227
Re: Peoplesoft

You may need to maintain the last transaction id used in some record. In SearchInit of the Component Record, write a PeopleCode to set the field value as "NEW". On fieldChange PeopleCode of the Run button, get the next transaction id using the GetNextNumberWithGapsCommit/GetNextNumberWithGaps/GetNextNumber (depending on the PT version) and assign it to the Transaction ID field (ofcourse you may need to concatenate with the string "TRN"). I believe there are some articles in this site on auto generating the numeric values.

Guest's picture
Guest (not verified)
Re: Peoplesoft

Thanks Ashar

Nitin's picture
User offline. Last seen 5 years 43 weeks ago. Offline
Joined: 06/30/2008
Posts: 73
Re: Peoplesoft

We always call DoSave() on Run Button before running any process.
So the SavePreChange is the place where we assign and set the Value for the Transaction ID.

Thanks
Nitin