Use the GetNextNumber function to increment the value in a record for the field you specify by one.
Syntax:
GetNextNumber ({record.field | record_name, field_name}, max_number)
Best place to add such code is in SavePostChange event.
Example:
My_Field = GetNextNumber(My_Record.My_Field, 99999999);
| Title | Under | Posted on |
|---|---|---|
| How to run nvision report through portal | PeopleSoft Technical | 08/31/2010 - 4:45am |
| Any1 here who can help? | PeopleSoft Technical | 08/31/2010 - 2:12am |
| How to create matrix layout | PeopleSoft Technical | 08/27/2010 - 2:22am |
| UnCaught C++ Exception | PeopleSoft Technical | 08/10/2010 - 9:05am |
Comments
Hi
Nice
There ia another function GetNextNumberWithCommits.
This created a new connection .. fetch the number,.. updated with new and commits.
One of them is having an Issue on OS390.
Nitin, your talking about GetNextNumberWithGapsCommit, right? I think you just forgot the word "Gaps". But yes I agree with you, GetNextNumberWithGapsCommit has more flexibility and provides better performance. Thanks for your tip!
Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog
Nitin / Lepa i do agree with both of you..and want to update 1 more thing which is --
The GetNextNumberWithGaps function is very restrictive in its usage. The GetNextNumberWithGapsCommit function can be used in any event.
Post new comment