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.
See Also
Database Data Type
Get Started with AL
Developing Extensions
Commentaires
https://aka.ms/ContentUserFeedback.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour