Editar

Partilhar via


Database.SelectLatestVersion() Method

Version: Available or changed with runtime version 1.0.

Forces the latest version of the database to be used.

Syntax

 Database.SelectLatestVersion()

Note

This method can be invoked without specifying the data type name.

Remarks

This method makes sure that the data displayed is the most current data in the database. The method clears all non-locked records from the client cache, thereby ensuring that you read the most recent data. The method also clears the current client session's cache for the CaptionClassTranslate strings. The strings will then be reevaluated by the CaptionClassTranslate method trigger in codeunit 42.

Warning

Clearing the cache and reading data directly from the database adversely affects performance.

Database Data Type
Get Started with AL
Developing Extensions