GetNextNumberWithGaps - PeopleCode Commands Directory

GetNextNumberWithGaps

Usage:
&number=GetNextNumberWithGaps(Record.Field, &MaxNumber, &Step, [&WhereClause [, &Param1...] ]);

Description:
DEPRECATED. SPr, WFl only. Returns highest value in Field (subject to WhereClause) plus Step. Use GetNextNumberWithGapsCommit

If this has not answered your question - either search on Google or ask a question below:

Google Product Search

Create a simple Launch Page for your PeopleSoft Databases


Comment: Helper
From PeopleBooks: Many applications use a sequence number as a unique key. The last number used is stored in a common table, and a SQL statement is issued to retrieve the last number used and update the table. This locks the common table until the whole transaction is saved and the unit of work committed. Instead, consider using the GetNextNumberWithGaps PeopleCode function when gaps in the sequence numbering are acceptable. The function retrieves the last number used, increments it by one, and updates the common table. This is done in a separate unit of work, to minimize the time a database lock is held on the common table. GetNextNumberWithGaps issues a commit only when issued from the SavePreChange or Workflow event.


Questions, Queries and Answers

Your Display Name

 

Offers available today

PicStop

Computers and accessories

McAfee UK

Anti Virus and Security Software

Micro Direct

Computers and more - Backup Devices, Case Modding, CD, DVD Drives & Writers, CPUs & Processors, Fans & Heat Sinks, Graphics Cards, Hard Drives & Storage, IO Devices, Memory, Motherboards, Power Supplies & PSUs, Sound Cards, Storage Controllers, TV & Video

PC World

PC, Laptops, Desktop machines from many manufacturers

Hewlett Packard

HP (Hewlett-Packard) make and sell digital cameras, photo editing, and photo paper along with their world beating printers and scanners