SaveData([Callback: ICubeCallback = Null]);
Callback - the object that handles errors occurring when saving data.
The SaveData method saves changed data in the sources.
Executing the example requires a regular report with the Report identifier. A data source is added to the report. A slice is to be created for this source, and a data area is to be created based on this slice.
Sub Main;
Var
MB: IMetabase;
Report: IPrxReport;
Title: IPrxReportTitle;
Range: IPrxRange;
s: String;
x, y: Integer;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("Report").Edit As IPrxReport;
Report.DataIslands.Item(0).Sheet.Recalc;
x := Report.DataIslands.Item(0).Range.Top + 1;
y := Report.DataIslands.Item(0).Range.Left + 1;
Report.ActiveSheet.Table.Cell(x, y).Value := 10;
If Report.IsDataChanged Then
Report.SaveData;
End If;
End Sub Main;
Executing the example saves changed data in the source, on which the first data area of the regular report is based. The identifier of the regular report - Report.
See also: