Previous function

Official Content
This documentation is valid for:

Returns the previously entered value of a given attribute.


Previous( [Attribute] )

Type Returned:
Same as argument attribute


Objects: Transaction


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.


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.