Official Content

Returns the previously entered value of a given attribute.

Syntax

Previous( [Attribute] )

Type Returned:
Same as argument attribute

Scope

Objects: Transaction

Description

Returns the value of attribute used in the last insertion in the current program session. The value is not stored and it is lost after the user leaves the Transaction program. If no attribute is specified, the attribute being assigned is assumed.

Samples

Transaction Rule:

Default(ClientState, Previous());

If, for instance, the user types in 'SUSP' as the ClientState value and completes the insertion for the Transaction, the next insert screen will display 'SUSP' as the default value for ClientState, which the user may change. In other words, the default value for ClientState will be the last value entered.







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