Επεξεργασία

Κοινή χρήση μέσω


NavApp.RestoreArchiveData(Integer [, Boolean]) 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."

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

Syntax

[Ok := ]  NavApp.RestoreArchiveData(TableNo: Integer [, RunTrigger: Boolean])

Parameters

TableNo
 Type: Integer
The ID of the table for which to restore achived data.

[Optional] RunTrigger
 Type: Boolean
true if the table triggers should run, otherwise false.

Return Value

[Optional] Ok
 Type: Boolean
true, if the archived data was restored for the specified table; otherwise false If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

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 RESTOREARCHIVEDATA method, you can restore the archived data to the application table of the new version of an extension when it is installed.

NavApp Data Type
Get Started with AL
Developing Extensions