Table of contents



Official Content

Numbers a Transaction object’s second, third, or another nested level, automatically.

Syntax

Serial(att1 , att2 , step);

Where:

att1
     Is the attribute to be increased.

att2
     Marks the starting value for att1 and is always updated with the last value of att2. This attribute must be included in the structure level that is immediately above the attribute you wish to autonumber. You can delete att2 from the form, but the attribute att1 is required to be on the web form, otherwise the rule will not work on the client-side.

step
     Is the value to add to each att1. In other words, is the serialization step or increment.

Description 

You need to use this rule to automatically number a second, third, or another nested level, as the Autonumber property can only be applied to single primary keys.
This rule requires defining an attribute in the first level of the Transaction, which will save the last value assigned to the lines of the second level.

Samples

SerialRuleImage






Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant