Muokkaa

Jaa


NavApp.DeleteArchiveData(Integer) Method

Version: Available or changed with runtime version 1.0 until version 6.0 where it was deprecated for the following reason: "The features related to data migration from V1 to V2 extensions are being deprecated."

Deletes the archived data for a specified table of an extension during installation.

Syntax

 NavApp.DeleteArchiveData(TableNo: Integer)

Parameters

TableNo
 Type: Integer
The ID of the table for which to delete archived data.

If you omit this optional return value and if archived data cannot be deleted for the specified table, then a run-time error occurs. If you include a return value, then it is assumed that you will handle any errors and no run-time error occurs, even though the archived data is not deleted.

Remarks

You use this method as part of the upgrade code for an extension, where it is called from the OnNavAppUpgradePerDatabase() or OnNavAppUpgradePerCompany() system methods. When an extension is uninstalled, the data in application tables of the extension is automatically stored into a set of special tables so that the data is still preserved. With the DeleteARCHIVEDATA method, you can delete the archived data from the application table of the new version of an extension when it is installed.

NavApp Data Type
Get Started with AL
Developing Extensions