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 ?
Title | Under | Posted on |
---|---|---|
Component interface Error: no rows exist for the specified keys | PeopleSoft Technical | 03/15/2019 - 3:54am |
ADD 24 months starting from current month.(peoplesoft) | PeopleSoft Functional | 07/29/2018 - 8:44pm |
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
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.
Thanks Ashar
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