Page.Update([Boolean]) Method

Version: Available or changed with runtime version 1.0.

Saves the current record and then updates the controls on the page. If you set the SaveRecord parameter to false, this method will not save the record before the page is updated.

Syntax

 Page.Update([SaveRecord: Boolean])

Parameters

Page
 Type: Page
An instance of the Page data type.

[Optional] SaveRecord
 Type: Boolean
Set this parameter to true if you want to save the current record. Set this parameter to false if you want to update without saving the current record.

Remarks

The SaveRecord default depends on whether SourceTable is specified or not. If SourceTable is not defined (== null), then the default value is false. If SourceTable is specified then the default value is true.

Page Data Type
Get Started with AL
Developing Extensions